Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Test for expected CryptographyDeprecationWarnings (#4372) | Tim Burke | 2018-07-28 | 1 | -17/+12 |
| | | | | | | | The remaining calls to `signer()` and `verifier()` are exercising the deprecated API intentionally. Let's test that the deprecation warnings are being raised as expected. Closes #4311; see also #4314. | ||||
* | improve skip msg when skipping an ECDH test in test_ec (#4355) | Paul Kehrer | 2018-07-18 | 1 | -2/+2 |
| | |||||
* | Fixes #4242 -- added an additional assert to make this test more resillient ↵ | Alex Gaynor | 2018-07-04 | 1 | -0/+2 |
| | | | | (#4308) | ||||
* | parametrize a few things in test_ec (#4268) | Paul Kehrer | 2018-05-30 | 1 | -30/+13 |
| | |||||
* | Validate the public/private halves of EC keys on import. (#4241) | David Benjamin | 2018-05-14 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Brainpool curves (#4129) | Paul Kehrer | 2018-03-15 | 1 | -1/+28 |
| | | | | | | | | | | | | | | | | | | * added brainpool ec-curves key_length >= 256bit * limit brainpool curves to the set that appear required + docs * oops * typos all around me * add brainpool ECDH kex tests * switch to using rfc 7027 vectors * review feedback * empty commits are the best | ||||
* | update the ec tests to not emit 3000 warnings (#4048) | Alex Gaynor | 2017-12-10 | 1 | -11/+12 |
| | |||||
* | Use a different warning class so users get warnings (#4014) | Alex Gaynor | 2017-11-11 | 1 | -4/+5 |
| | | | | | | | | | | | | * Use a different warning class so users get warnings * fixed tests * do our own warning class * typo * flake8 | ||||
* | Fix a few new flake8 issues (#4008) | Alex Gaynor | 2017-11-02 | 1 | -1/+0 |
| | |||||
* | deprecate signer/verifier on asymmetric keys (#3663) | Paul Kehrer | 2017-06-03 | 1 | -2/+4 |
| | | | | | | * deprecate signer/verifier on asymmetric keys * review feedback, switch deprecated_call to work around a bug | ||||
* | make signature and verification contexts error better re: prehashed (#3658) | Paul Kehrer | 2017-06-02 | 1 | -0/+16 |
| | | | | | | * make signature and verification contexts error better re: prehashed * code review feedback | ||||
* | add convenience methods for key_size on EC{Public,Private}Key (#3587) | Paul Kehrer | 2017-05-23 | 1 | -0/+9 |
| | |||||
* | Fixes #3538 -- Make our OpenSSL EC verifier's implementation match the API ↵ | Alex Gaynor | 2017-05-10 | 1 | -1/+1 |
| | | | | | | | | | | | | | | (#3539) * Document our real API for EC verification, not an accident * formatting consistency * fix the code itself * fixed class name * fixed a test too | ||||
* | error if private_value is <= 0 in ec.derive_private_key (#3273) | Paul Kehrer | 2016-11-21 | 1 | -0/+3 |
| | |||||
* | add support for prehashing in ECDSA sign/verify (#3267) | Paul Kehrer | 2016-11-20 | 1 | -1/+67 |
| | | | | | | * add support for prehashing in ECDSA sign/verify * move signature_algorithm check to its own function | ||||
* | add ec.private_key_from_secret_and_curve (#3225) | Ofek Lev | 2016-11-11 | 1 | -0/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * finish https://github.com/pyca/cryptography/pull/1973 * change API & add test Function will now return an instance of EllipticCurvePrivateKey, as that is the users' ultimate goal anyway. * fix test * improve coverage * complete coverage * final fix * centos fix * retry * cleanup asserts * use openssl_assert * skip unsupported platforms * change API name to derive_private_key * change version added * improve description of `secret` param * separate successful and failure test cases * simplify successful case * add docs for derive_elliptic_curve_public_point * add period | ||||
* | One shot sign/verification ECDSA (#3029) | Aviv Palivoda | 2016-07-02 | 1 | -0/+22 |
| | | | | | | | | | | | | | | * Add sign and verify methods to ECDSA * Documented ECDSA sign/verify methods * Added CHANGELOG entry * Skipping test verify and sign if curve is not supported * Fixed typo in documentation return type * Removed provider language from EllipticCurvePrivateKey and EllipticCurvePublicKey | ||||
* | SSH serialization for public keys (#2957) | Alex Gaynor | 2016-06-03 | 1 | -0/+28 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * SSH serialization for public keys * name errors ahoy! * id, ego, superego * dsa support * EC support * Don't keyerror * Documentation OpenSSH * flake8 * fix * bytes bytes bytes * skip curve unsupported * bytes! * Move a function * reorganize code for coverage | ||||
* | Fixed #2887 -- implement __hash__ on EC numbers classes (#2888) | Alex Gaynor | 2016-04-30 | 1 | -0/+24 |
| | |||||
* | Un-double the test doubles | Alex Gaynor | 2016-03-05 | 1 | -6/+2 |
| | |||||
* | Write some tests for skip conditions in tests. | Alex Gaynor | 2016-01-10 | 1 | -0/+6 |
| | | | | Without this these branches aren't excersised without 0.9.8, but conceptually they are needed. | ||||
* | use the non-deprecated name for this function | Alex Gaynor | 2015-12-19 | 1 | -3/+3 |
| | |||||
* | Swapping modified x509 test with modified ec test | Peter Hamilton | 2015-10-30 | 1 | -11/+2 |
| | |||||
* | Error cleanly if the public and private keys to an ECDH key exchange are on ↵ | Alex Gaynor | 2015-10-28 | 1 | -1/+27 |
| | | | | different curves | ||||
* | add ellipticcurvepublicnumbers repr | Paul Kehrer | 2015-10-28 | 1 | -0/+5 |
| | |||||
* | address review feedback | Paul Kehrer | 2015-10-28 | 1 | -7/+0 |
| | |||||
* | modify approach to use EllipticCurvePublicNumbers methods | Paul Kehrer | 2015-10-27 | 1 | -0/+74 |
| | |||||
* | better place for this test | Alex Gaynor | 2015-10-19 | 1 | -0/+16 |
| | |||||
* | removed unused code, and added a test | Alex Gaynor | 2015-10-19 | 1 | -12/+13 |
| | |||||
* | be more pro-active in handling invalid keys | Alex Gaynor | 2015-10-18 | 1 | -23/+27 |
| | |||||
* | unused | Alex Gaynor | 2015-10-17 | 1 | -6/+0 |
| | |||||
* | a refactor to the API | Alex Gaynor | 2015-10-17 | 1 | -53/+41 |
| | |||||
* | Add an Elliptic Curve Key Exchange Algorithm(ECDH) | Simo Sorce | 2015-10-17 | 1 | -1/+93 |
| | | | | | | | | | The ECDH Key Exchange algorithm as standardized in NIST publication 800-56A Revision 2 Includes tests with vectors from NIST. Signed-off-by: Simo Sorce <simo@redhat.com> | ||||
* | Catch Invalid X or Y points and raise a ValueError | Simo Sorce | 2015-10-12 | 1 | -0/+29 |
| | | | | Signed-off-by: Simo Sorce <simo@redhat.com> | ||||
* | skip if check on ec test | Paul Kehrer | 2015-08-12 | 1 | -1/+2 |
| | |||||
* | Enforce signature type in ECDSA and add tests | Stanisław Pitucha | 2015-08-12 | 1 | -0/+9 |
| | | | | | Ensure that ECDSA signatures are bytes to match RSA/DSA and add tests for all three. | ||||
* | require serialization in asym tests | Paul Kehrer | 2015-06-27 | 1 | -36/+5 |
| | |||||
* | fix ec_cdata_to_evp_pkey bug | Paul Kehrer | 2015-06-22 | 1 | -0/+18 |
| | | | | | | We weren't actually returning the object and the tests weren't catching it because we didn't try to use the evp_pkey property in the tests. The added test confirms it actually works. | ||||
* | add support for secp256k1 | Paul Kehrer | 2015-05-08 | 1 | -4/+11 |
| | |||||
* | support DER encoded EC private key serialization | Paul Kehrer | 2015-03-13 | 1 | -12/+93 |
| | |||||
* | Merge pull request #1741 from reaperhulk/serialize-der-public-keys | Alex Gaynor | 2015-03-10 | 1 | -8/+23 |
|\ | | | | | support DER serialization of public keys | ||||
| * | support DER serialization of public keys | Paul Kehrer | 2015-03-10 | 1 | -8/+23 |
| | | |||||
* | | Fixed the deprecation warnings being triggered by the tests | Alex Gaynor | 2015-03-10 | 1 | -1/+1 |
|/ | |||||
* | make tests properly skip on OpenSSLs without EC support | Paul Kehrer | 2015-03-08 | 1 | -0/+4 |
| | |||||
* | serialize EC public keys | Paul Kehrer | 2015-03-08 | 1 | -1/+69 |
| | |||||
* | format to privateformat | Paul Kehrer | 2015-03-02 | 1 | -7/+10 |
| | |||||
* | skip those tests if ec unsupported | Paul Kehrer | 2015-03-01 | 1 | -0/+7 |
| | |||||
* | add support for serialization of EC private keys | Paul Kehrer | 2015-03-01 | 1 | -2/+162 |
| | |||||
* | move EC interfaces | Paul Kehrer | 2015-02-12 | 1 | -4/+4 |
| | |||||
* | Removed some deprecated code | Alex Gaynor | 2014-12-24 | 1 | -19/+0 |
| |