aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #5075 -- use hkdf_*.json from wycheproof (#5190)Alex Gaynor2020-04-121-5/+9
|
* Replace floating point arithmetic with integer arithmetic (#5181)Torin Carey2020-04-041-4/+3
|
* Use dict literals. (#5080)Mads Jensen2019-12-021-1/+1
|
* Simplify string formatting (#4757)Alex Gaynor2019-02-201-3/+3
|
* shake128/256 support (#4611)Paul Kehrer2019-01-191-1/+1
| | | | | | | | | | | | | | * shake128/256 support * remove block_size * doc an exception * change how we detect XOF by adding _xof attribute * interface! * review feedback
* HTTPS a bunch of links in random places (#4666)Alex Gaynor2018-12-311-1/+1
| | | | | | * HTTPS a bunch of links in random places * What the heck happened here?
* update pytest config (#4463)Paul Kehrer2018-09-061-7/+5
| | | | | | | | | | | | | | * update pytest config pytest 3.8.0 was just released and officially deprecates some of the way we do pytest marks. They introduced a new way to do this in 3.6 so this PR switches to that mechanism and updates our minimum pytest requirement * update the stubs * also update wycheproof test config to remove deprecated paths * don't need this any more
* Refs #3331 -- integrated wycheproof ECDH tests (#4354)Alex Gaynor2018-07-181-0/+4
| | | | | | | | | | | | * Refs #3331 -- integrated wycheproof ECDH tests * flake8 + missing assert * Handle this error case * skip on unsupported * shouldn't need to try here any more
* Refs #3331 -- added initial wycheproof integration, starting with x25519, ↵Alex Gaynor2018-07-161-0/+41
| | | | | rsa, and keywrap (#4310) * Refs #3331 -- added initial wycheproof integration, starting with x25519 tests
* Allow DSA q=224 (#4147)Paul Kehrer2018-03-181-44/+18
| | | | | | | | * load Q=224 vectors * DSA parameters should support 224 for q length * oxford comma
* Debian sid is python3.6 now (#3968)Alex Gaynor2017-10-121-0/+3
| | | | | | * Debian sid is python3.6 now * Workaround because apparently measuring coverage correctly isn't a legitimate use case
* implement CCM vector parser (#3699)Paul Kehrer2017-06-211-0/+73
|
* ed25519 vector loader (#3707)Paul Kehrer2017-06-201-0/+17
| | | | | | * ed25519 vector loader * refactor to use unpacking
* call check_backend_support directly from backend fixture (#3666)Alex Gaynor2017-06-031-7/+4
|
* Switched our backend to be a normal fixture in tests (#3665)Alex Gaynor2017-06-031-9/+0
|
* Delete some code (#3563)Alex Gaynor2017-05-201-17/+0
| | | | | | | | * Delete some code * removed import * delete more code
* Adding CAVP vector parsing for NIST SP 800-108 KDF vectors. (#2865)Jared2016-04-131-0/+37
|
* Fix load_kasvs_ecdh_vectors() COUNT sourcingSimo Sorce2015-10-131-1/+1
| | | | | | | | | COUNT is a decimal number in test files, but was erroneously read and converted as if the source was a hexadecimal number. Fix the loader and test the fix. Signed-off-by: Simo Sorce <simo@redhat.com>
* Some cleanupsAlex Gaynor2015-09-241-12/+12
|
* Add vector loader for X9.63 vectorsSimo Sorce2015-09-241-0/+49
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* remove some more branching in the vector loadersPaul Kehrer2015-08-011-7/+4
|
* fixed testsAlex Gaynor2015-07-021-7/+5
|
* Improved coverage for tests, handle multiple pytest.mark.supported ↵Alex Gaynor2015-07-021-1/+4
| | | | decorators on one function
* fixAlex Gaynor2015-06-271-1/+2
|
* Simplified code in the test loaders and improved branch coverage in the x509 ↵Alex Gaynor2015-06-271-4/+0
| | | | tests
* Modify ECDH Test vector loader for KDF vectorsSimo Sorce2015-05-061-0/+4
| | | | | | Also add tests for the new vectors Signed-off-by: Simo Sorce <simo@redhat.com>
* Merge pull request #1876 from simo5/ECDHPaul Kehrer2015-05-061-0/+104
|\ | | | | Add loader for ECDH test vectors
| * Add loader for ECDH test vectorsSimo Sorce2015-05-011-0/+104
| | | | | | | | | | | | | | Also fix test vector files, they had a truncated line for the EE set in both init and resp files. Signed-off-by: Simo Sorce <simo@redhat.com>
* | Support loading of SECP256K1 vectorsAlex Stapleton2015-05-031-0/+1
|/
* Fixed new flake8 warnings from teh latest versionAlex Gaynor2015-02-151-2/+2
|
* add encode_rfc6979_signature and refactor tests to use itPaul Kehrer2014-11-271-17/+0
|
* alter vector file loader to support passing read modePaul Kehrer2014-11-271-2/+2
|
* Update the license header for every source file, as well as the documentation.Alex Gaynor2014-11-161-12/+3
| | | | Fixes #1209
* move skip_if_empty to separate function for test coveragePaul Kehrer2014-10-251-0/+9
|
* filter backends during initial generation to elide tests entirelyPaul Kehrer2014-10-241-2/+0
|
* Change how we represented that a test requires a backend.Alex Gaynor2014-10-231-8/+0
| | | | This way is more extensible and requires less maintaince
* KASVS vector loaderAlex Stapleton2014-08-101-0/+59
|
* we should use der rather than berPaul Kehrer2014-04-301-1/+1
| | | | Doesn't make a difference in this specific case but it is correct.
* rename dss_sig_value -> der_encode_dsa_signaturePaul Kehrer2014-04-301-1/+1
|
* make DSSSigValue class privatePaul Kehrer2014-04-301-2/+2
|
* use pyasn1 for creating the dss-sig-value structurePaul Kehrer2014-04-301-22/+12
|
* dss_sig_value: Pure python conversion of (r, s) to byte streamPaul Kehrer2014-04-301-0/+27
|
* fix a coverage miss in the dsa sig vector loaderPaul Kehrer2014-04-221-2/+2
|
* Modify DSA SigVer loader to be able to load SigGen vectorsMohammed Attia2014-04-221-1/+2
|
* Add DSA SigVer vectors loaderMohammed Attia2014-04-221-0/+66
|
* Fix pep8 errors for latest import linterAlex Stapleton2014-04-201-1/+1
|
* Merge pull request #939 from public/ecdsa-sigver-rspPaul Kehrer2014-04-191-1/+2
|\ | | | | ECDSA SigVer.rsp loading
| * SigVer.rsp loadingAlex Stapleton2014-04-191-1/+2
| |
* | This one curve is still named wrongAlex Stapleton2014-04-191-1/+2
| | | | | | | | http://tools.ietf.org/html/rfc4492#appendix-A
* | Fix bad NIST <-> SECG curve name mapAlex Stapleton2014-04-181-3/+5
|/