Commit graph

83 commits

Author SHA1 Message Date
Alex Stapleton
f6a1cf6ba4 Support loading of SECP256K1 vectors 2015-05-03 12:42:11 +01: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
Alex Gaynor
7a489dbd11 Fixed #809 -- switch back to always using UnsupportedAlgorithm 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
Matthew Iversen
68e77c752b Load vectors from cryptography.vectors 2014-03-22 16:25:38 +00:00
Paul Kehrer
90450f3626 a few small fixes 2014-03-19 12:37:17 -04:00
Paul Kehrer
afc1ccdcc8 import order fixes for future automated checking 2014-03-19 11:49:32 -04:00
Paul Kehrer
e66f69af6a py3 fix 2014-03-18 07:57:26 -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
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
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
7774a0380b fix pep8 2014-02-17 22:56:55 -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
Paul Kehrer
d5c9f5ae0c remove openssl vector loader that is no longer in use 2014-02-16 20:31:52 -06:00
Paul Kehrer
09328bbfb3 add crt coefficients to RSAPrivateKey constructor and update tests 2014-02-12 23:57:27 -06:00
Alex Stapleton
58f27accf2 PKCS #1 RSA test vector loader 2014-02-05 18:06:16 +00:00