cryptography/tests
David Benjamin 763990efa6 Validate the public/private halves of EC keys on import. (#4241)
* Validate the public/private halves of EC keys on import.

OpenSSL's API is a little finicky. If one sets the public key before the
private key, it does not validate that they match. If set in the other
order, it does validate this.

In particular, KASValidityTest_ECCStaticUnified_NOKC_ZZOnly_init.fax
describes error code 7 as:

  Result = F (7 - IUT's Static private key d changed-prikey validity)

Reordering the two operations makes those tests to fail on key import,
which is what CAVP appears to have intended.

* Wrap to 79 rather than 80 columns
2018-05-14 22:49:24 -04:00
..
hazmat Validate the public/private halves of EC keys on import. (#4241) 2018-05-14 22:49:24 -04:00
hypothesis expunge python 2.6 (#3962) 2017-10-11 18:06:01 -04:00
x509 Raise ve on bad gt (#4180) 2018-04-03 19:24:06 -04:00
__init__.py
conftest.py call check_backend_support directly from backend fixture (#3666) 2017-06-03 16:02:50 -10:00
doubles.py standard future import 2016-03-06 09:54:23 -05:00
test_cryptography_utils.py Fixes #4076 - simplify the implementation of int_from_bytes on python2 (#4077) 2018-01-10 08:17:09 -05:00
test_fernet.py Add support for extracting timestamp from a Fernet token (#4229) 2018-05-12 11:57:32 -04:00
test_interfaces.py Add a register_interface_if decorator. (#3120) 2016-08-29 08:21:28 -04:00
test_utils.py Allow DSA q=224 (#4147) 2018-03-18 10:12:14 -04:00
test_warnings.py Test deleting deprecated attributes. 2016-03-21 11:38:20 +00:00
utils.py Allow DSA q=224 (#4147) 2018-03-18 10:12:14 -04:00