Commit graph

104 commits

Author SHA1 Message Date
Alex Gaynor
feb134586e Refs #3331 -- integrated wycheproof ECDH tests (#4354)
* Refs #3331 -- integrated wycheproof ECDH tests

* flake8 + missing assert

* Handle this error case

* skip on unsupported

* shouldn't need to try here any more
2018-07-18 18:20:48 +08:00
Alex Gaynor
2e85a925b4 Refs #3331 -- added initial wycheproof integration, starting with x25519, rsa, and keywrap (#4310)
* Refs #3331 -- added initial wycheproof integration, starting with x25519 tests
2018-07-16 20:48:33 +05:30
Paul Kehrer
47a66f19bd Allow DSA q=224 (#4147)
* load Q=224 vectors

* DSA parameters should support 224 for q length

* oxford comma
2018-03-18 10:12:14 -04:00
Alex Gaynor
a87daea52b Debian sid is python3.6 now (#3968)
* Debian sid is python3.6 now

* Workaround because apparently measuring coverage correctly isn't a legitimate use case
2017-10-12 09:36:30 +08:00
Paul Kehrer
33a41e75d2 implement CCM vector parser (#3699) 2017-06-21 07:39:20 -04:00
Paul Kehrer
a923b005a1 ed25519 vector loader (#3707)
* ed25519 vector loader

* refactor to use unpacking
2017-06-20 07:12:35 -04:00
Alex Gaynor
e6055fbfb2 call check_backend_support directly from backend fixture (#3666) 2017-06-03 16:02:50 -10:00
Alex Gaynor
133a17971a Switched our backend to be a normal fixture in tests (#3665) 2017-06-03 14:38:22 -10:00
Alex Gaynor
f9b3b1592d Delete some code (#3563)
* Delete some code

* removed import

* delete more code
2017-05-20 18:36:19 -07:00
Jared
cd258d531c Adding CAVP vector parsing for NIST SP 800-108 KDF vectors. (#2865) 2016-04-13 16:03:52 -05:00
Simo Sorce
6e3b155bb6 Fix load_kasvs_ecdh_vectors() COUNT sourcing
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>
2015-10-13 14:50:17 -04:00
Alex Gaynor
ace036dc67 Some cleanups 2015-09-24 20:23:08 -04:00
Simo Sorce
7600dee648 Add vector loader for X9.63 vectors
Signed-off-by: Simo Sorce <simo@redhat.com>
2015-09-24 19:38:41 -04:00
Paul Kehrer
b60b8dd645 remove some more branching in the vector loaders 2015-08-01 19:50:15 +01:00
Alex Gaynor
50ebb48985 fixed tests 2015-07-02 00:21:41 -04:00
Alex Gaynor
be28a243b2 Improved coverage for tests, handle multiple pytest.mark.supported decorators on one function 2015-07-02 00:05:49 -04:00
Alex Gaynor
0fe7db62cd fix 2015-06-27 17:20:59 -04:00
Alex Gaynor
ece3872d09 Simplified code in the test loaders and improved branch coverage in the x509 tests 2015-06-27 17:19:30 -04:00
Simo Sorce
83e563e6a8 Modify ECDH Test vector loader for KDF vectors
Also add tests for the new vectors

Signed-off-by: Simo Sorce <simo@redhat.com>
2015-05-06 16:37:44 -04:00
Paul Kehrer
18bba8437f Merge pull request #1876 from simo5/ECDH
Add loader for ECDH test vectors
2015-05-06 00:49:28 -05:00
Alex Stapleton
f6a1cf6ba4 Support loading of SECP256K1 vectors 2015-05-03 12:42:11 +01:00
Simo Sorce
917addbb06 Add loader for ECDH test vectors
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>
2015-05-01 15:58:35 -04:00
Alex Gaynor
e0a879f72f Fixed new flake8 warnings from teh latest version 2015-02-15 20:54:34 -08:00
Paul Kehrer
aa7dacaf53 add encode_rfc6979_signature and refactor tests to use it 2014-11-27 10:43:49 -10:00
Paul Kehrer
fdae070f8b alter vector file loader to support passing read mode 2014-11-27 08:03:22 -10:00
Alex Gaynor
5951f46be6 Update the license header for every source file, as well as the documentation.
Fixes #1209
2014-11-16 09:08:42 -08:00
Paul Kehrer
902d8cfd58 move skip_if_empty to separate function for test coverage 2014-10-25 12:22:10 -07:00
Paul Kehrer
f93d8244ea filter backends during initial generation to elide tests entirely 2014-10-24 07:38:59 -07:00
Alex Gaynor
7aab8b4ae4 Change how we represented that a test requires a backend.
This way is more extensible and requires less maintaince
2014-10-23 11:01:25 -07:00
Alex Stapleton
839c09d53e KASVS vector loader 2014-08-10 13:53:30 +01:00
Paul Kehrer
a409ae1dcb we should use der rather than ber
Doesn't make a difference in this specific case but it is correct.
2014-04-30 13:28:28 -05:00
Paul Kehrer
14951f4252 rename dss_sig_value -> der_encode_dsa_signature 2014-04-30 12:14:48 -05:00
Paul Kehrer
d0dc6a36a5 make DSSSigValue class private 2014-04-30 12:12:50 -05:00
Paul Kehrer
d3e3df9308 use pyasn1 for creating the dss-sig-value structure 2014-04-30 11:13:17 -05:00
Paul Kehrer
3fc686ea06 dss_sig_value: Pure python conversion of (r, s) to byte stream 2014-04-30 09:07:27 -05:00
Paul Kehrer
7ef2f8f6c8 fix a coverage miss in the dsa sig vector loader 2014-04-22 08:37:58 -05:00
Mohammed Attia
3c9e15857d Modify DSA SigVer loader to be able to load SigGen vectors 2014-04-22 16:25:11 +02:00
Mohammed Attia
0fb5d85c6c Add DSA SigVer vectors loader 2014-04-22 12:52:26 +02:00
Alex Stapleton
707b0085cb Fix pep8 errors for latest import linter 2014-04-20 22:24:41 +01:00
Paul Kehrer
99eff9f8f9 Merge pull request #939 from public/ecdsa-sigver-rsp
ECDSA SigVer.rsp loading
2014-04-19 09:26:24 -05:00
Alex Stapleton
44fe82d6d4 This one curve is still named wrong
http://tools.ietf.org/html/rfc4492#appendix-A
2014-04-19 09:45:16 +01:00
Alex Stapleton
6f729490b1 SigVer.rsp loading 2014-04-19 09:06:20 +01:00
Alex Stapleton
39e300f3d9 Fix bad NIST <-> SECG curve name map 2014-04-18 22:44:02 +01:00
Alex Stapleton
c387cf7e57 ECDSA SigGen.{txt,rsp} vector loader 2014-04-13 19:42:16 +01:00
Alex Stapleton
cf0486082b ECDSA vector loader 2014-04-12 14:39:09 +01:00
Alex Gaynor
07c4dcc690 Some cleanups to imports 2014-04-05 11:22:07 -07:00
Paul Kehrer
3fe9150c1c expand pkcs1 loader to support OAEP as well 2014-03-29 12:48:25 -05:00
Alex Stapleton
85a791f0fa Pain the bikeshed a different colour 2014-03-27 16:55:41 +00:00
Alex Stapleton
5e4c8c3666 Fixes to @alex's comments 2014-03-27 16:38:00 +00:00
Alex Stapleton
112963e296 Address most of my own comments 2014-03-27 07:31:12 +00:00