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
ac78c866d3
add test to cover partial branch in load_kasvs_ecdh_vectors
...
The loop to find supported parameter sets is partially covered otherwise
2015-08-01 20:26:00 +01:00
Paul Kehrer
fcd7d707fe
add a line for the ecdh vector loader to cover a missed branch
2015-08-01 19:50:08 +01:00
Alex Gaynor
50ebb48985
fixed tests
2015-07-02 00:21:41 -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
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
Paul Kehrer
aa7dacaf53
add encode_rfc6979_signature and refactor tests to use it
2014-11-27 10:43:49 -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
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
be8ce55717
negative test
2014-04-30 14:12:26 -05:00
Paul Kehrer
14951f4252
rename dss_sig_value -> der_encode_dsa_signature
2014-04-30 12:14:48 -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
Alex Gaynor
462bd60731
Fix some typos.
...
Found with https://github.com/intgr/topy/
2014-04-25 07:49:08 -07: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
6f729490b1
SigVer.rsp loading
2014-04-19 09:06:20 +01:00
Alex Stapleton
24a2f07246
Missed an unhexlify
2014-04-16 10:00:12 +01:00
Alex Stapleton
fb812d66a9
Use binascii.hexlify instead of just hexlify
2014-04-15 16:07:25 +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
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
d80195e171
Update tests
2014-03-27 12:53:55 +00:00
Alex Stapleton
112963e296
Address most of my own comments
2014-03-27 07:31:12 +00:00
Alex Stapleton
a39a319b09
Move cryptography.vectors to cryptography_vectors
...
All vectors are now stored in the subpackage in the vectors/ folder.
This package is automatically installed by setup.py test and will also
be uploaded with a matching version number by the PyPI upload task.
2014-03-24 09:46:47 +00:00
Paul Kehrer
afc1ccdcc8
import order fixes for future automated checking
2014-03-19 11:49:32 -04:00
Paul Kehrer
ae37176e01
remove a comma that was pointlessly added
2014-03-18 16:11:13 -04:00
Paul Kehrer
61666eb11a
add headers to each test so the file source can be determined
2014-03-18 07:53:04 -04:00
Paul Kehrer
afc2518fbf
another file permutation for rsa nist tested.
2014-03-18 07:51:56 -04:00
Paul Kehrer
62707f134f
expand RSA NIST vector loader to support verification vectors as well
2014-03-18 07:45:42 -04:00
Paul Kehrer
dde5933358
change rsa nist loader to use strings for algorithm name
2014-03-16 17:57:20 -04:00
Mohammed Attia
2da0013829
Add the vectors for different (L,N) pairs again for the loader test
2014-03-13 15:07:20 +02:00
Mohammed Attia
49b92596b6
Change flag to a bool
2014-03-13 12:33:40 +02:00
Mohammed Attia
22ccb8771f
Remove some of the vectors in the loader test
2014-03-12 18:31:15 +02:00
Mohammed Attia
98afd76692
Use iteritems from the six module for Python 3 compatibility
2014-03-12 16:55:07 +02:00
Mohammed Attia
613f8bc0e7
Decrease loader test size
2014-03-12 16:12:41 +02:00
Mohammed Attia
987cc708e2
Add loader and loader test for FIPS DSA KeyPair vectors
2014-03-12 16:07:21 +02:00
Paul Kehrer
2f2a206e18
add FIPS RSA test loader + tests
2014-03-10 23:30:28 -04:00
Alex Gaynor
c37feed731
Added future imports and licenses that are missing
2014-03-08 08:32:56 -08:00
Paul Kehrer
26811800a7
these examples should be bytes to be consistent with other loaders
2014-02-19 16:32:31 -06:00
Paul Kehrer
7d9c306cd6
rename msg -> message in pkcs1 loader
2014-02-18 08:27:39 -06:00
Paul Kehrer
efca280070
expand pkcs1 loader to load PKCS1 v1.5 and PSS signature examples
2014-02-17 22:04:24 -06:00