Commit graph

622 commits

Author SHA1 Message Date
Alex Stapleton
df16f4a573 fix pep8 errors 2014-04-01 15:00:00 +01:00
Alex Stapleton
976945d407 Add _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM 2014-04-01 12:11:12 +01:00
Alex Stapleton
6216357129 Add _Reasons.UNSUPPORTED_MGF 2014-04-01 12:11:08 +01:00
Mohammed Attia
230457a605 Add DSA private key api, docs and tests 2014-03-30 23:54:27 +02:00
Paul Kehrer
99b0b1f78d Merge pull request #870 from skeuomorf/dsa-public-key
Add DSA public key api, docs and tests
2014-03-30 15:58:20 -05:00
Ayrx
ed63a7998d Add test skip if interfaces.Mode is not supported 2014-03-30 14:18:50 +08:00
Mohammed Attia
5b50613aaa Add DSA public key api, docs and tests 2014-03-30 07:45:32 +02:00
Mohammed Attia
24171ccb2c Add DSA parameters api, docs and tests 2014-03-30 03:52:48 +02: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
4c1401a374 Update tests and raise sites 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 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
Alex Stapleton
0bd20e264c cryptography.vectors 2014-03-22 16:23:46 +00:00
Paul Kehrer
b8666f76d9 improve exception msgs, change how test_pss_signing_sha2 works 2014-03-20 19:07:45 -04:00
Paul Kehrer
cdd0d2f045 Merge branch 'master' into rsa-pss-signing
* master:
  add mgf1_hash_supported unsupported hash check
  more concise way of generating tests
  switch to a lambda
  rename some things
  add FIPS 186-2/3 signature verification tests for RSA PKCSv15 and PSS
  revert one import order change
  a few small fixes
  Add ASN1_TIME_free
  import order fixes for future automated checking

Conflicts:
	tests/hazmat/primitives/test_rsa.py
	tests/hazmat/primitives/utils.py
2014-03-20 18:43:04 -04:00
Paul Kehrer
4d8358fb50 add mgf1_hash_supported unsupported hash check 2014-03-19 19:14:15 -04:00
Paul Kehrer
503ddf4376 more concise way of generating tests 2014-03-19 18:33:07 -04:00
Paul Kehrer
c85f1797e4 switch to a lambda 2014-03-19 18:33:07 -04:00
Paul Kehrer
f29c3c55e8 rename some things 2014-03-19 18:32:31 -04:00
Paul Kehrer
49c8e21464 add FIPS 186-2/3 signature verification tests for RSA PKCSv15 and PSS 2014-03-19 18:32:30 -04:00
Paul Kehrer
a3bb335b2b never trust openssl
Turns out you can't trust it to safely compute the max salt length
allowed for PSS, so now we get to do it ourselves. We also check for
whether the key size is large enough for the selected hash function
(PSS only for now, PKCS1 coming in another PR)
2014-03-19 13:31:49 -04:00
Paul Kehrer
06aa7961d9 RSA PSS signature support 2014-03-19 13:29:40 -04: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
ae37176e01 remove a comma that was pointlessly added 2014-03-18 16:11:13 -04:00
Paul Kehrer
e66f69af6a py3 fix 2014-03-18 07:57:26 -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
Alex Gaynor
38c4263549 Merge pull request #792 from reaperhulk/rsa-pss-verify
RSA PSS Verify
2014-03-17 20:50:03 -07:00
David Reid
0380374fda Merge pull request #768 from reaperhulk/cffi-modulename-fix
Workaround for cffi issue 140
2014-03-17 15:41:00 -07:00
Paul Kehrer
5b143b42ae should probably update the test too 2014-03-17 17:58:42 -04:00
Paul Kehrer
c480f6e23f change exception and improve some language 2014-03-17 17:40:06 -04:00
Paul Kehrer
1cfdca212b pass the hash class rather than using getattr 2014-03-16 17:57:43 -04:00
Paul Kehrer
dde5933358 change rsa nist loader to use strings for algorithm name 2014-03-16 17:57:20 -04:00
Paul Kehrer
762014e1a4 fix indentation 2014-03-16 17:47:22 -04:00
Paul Kehrer
24b063da63 cover a missing line for older openssl 2014-03-16 17:03:40 -04:00
Paul Kehrer
b5936a7817 add RSA PSS verification support 2014-03-16 17:03:40 -04:00
Paul Kehrer
8322039ff7 Merge pull request #811 from alex/import-style
Tiny style changes to some imports
2014-03-16 13:12:50 -04:30
Alex Stapleton
01de3ef02b s/available_backends/_available_backends/ 2014-03-16 16:42:47 +00:00
Alex Gaynor
f70f017501 Tiny style changes to some imports 2014-03-16 09:35:24 -07:00
Alex Stapleton
24dc98c7fd Fix circular imports with available_backends() 2014-03-16 16:32:50 +00:00
Paul Kehrer
e171c5fcf4 Merge pull request #807 from Ayrx/add-backend-check-to-rsa
Added backend check to rsa primitives
2014-03-16 08:17:39 -04:30
Paul Kehrer
1e7ce06edb Merge pull request #806 from Ayrx/add-backend-check-to-cipher
Added backend check to cipher primitives
2014-03-16 08:07:55 -04:30
Paul Kehrer
77fdd4e455 Merge pull request #805 from Ayrx/add-backend-check-to-hmac
Added backend check to hmac primitives
2014-03-16 08:04:10 -04:30