aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_ec.py
Commit message (Collapse)AuthorAgeFilesLines
* Brainpool curves (#4129)Paul Kehrer2018-03-151-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 Gaynor2017-12-101-11/+12
|
* Use a different warning class so users get warnings (#4014)Alex Gaynor2017-11-111-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 Gaynor2017-11-021-1/+0
|
* deprecate signer/verifier on asymmetric keys (#3663)Paul Kehrer2017-06-031-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 Kehrer2017-06-021-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 Kehrer2017-05-231-0/+9
|
* Fixes #3538 -- Make our OpenSSL EC verifier's implementation match the API ↵Alex Gaynor2017-05-101-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 Kehrer2016-11-211-0/+3
|
* add support for prehashing in ECDSA sign/verify (#3267)Paul Kehrer2016-11-201-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 Lev2016-11-111-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 Palivoda2016-07-021-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 Gaynor2016-06-031-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 Gaynor2016-04-301-0/+24
|
* Un-double the test doublesAlex Gaynor2016-03-051-6/+2
|
* Write some tests for skip conditions in tests.Alex Gaynor2016-01-101-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 functionAlex Gaynor2015-12-191-3/+3
|
* Swapping modified x509 test with modified ec testPeter Hamilton2015-10-301-11/+2
|
* Error cleanly if the public and private keys to an ECDH key exchange are on ↵Alex Gaynor2015-10-281-1/+27
| | | | different curves
* add ellipticcurvepublicnumbers reprPaul Kehrer2015-10-281-0/+5
|
* address review feedbackPaul Kehrer2015-10-281-7/+0
|
* modify approach to use EllipticCurvePublicNumbers methodsPaul Kehrer2015-10-271-0/+74
|
* better place for this testAlex Gaynor2015-10-191-0/+16
|
* removed unused code, and added a testAlex Gaynor2015-10-191-12/+13
|
* be more pro-active in handling invalid keysAlex Gaynor2015-10-181-23/+27
|
* unusedAlex Gaynor2015-10-171-6/+0
|
* a refactor to the APIAlex Gaynor2015-10-171-53/+41
|
* Add an Elliptic Curve Key Exchange Algorithm(ECDH)Simo Sorce2015-10-171-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 ValueErrorSimo Sorce2015-10-121-0/+29
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* skip if check on ec testPaul Kehrer2015-08-121-1/+2
|
* Enforce signature type in ECDSA and add testsStanisław Pitucha2015-08-121-0/+9
| | | | | Ensure that ECDSA signatures are bytes to match RSA/DSA and add tests for all three.
* require serialization in asym testsPaul Kehrer2015-06-271-36/+5
|
* fix ec_cdata_to_evp_pkey bugPaul Kehrer2015-06-221-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 secp256k1Paul Kehrer2015-05-081-4/+11
|
* support DER encoded EC private key serializationPaul Kehrer2015-03-131-12/+93
|
* Merge pull request #1741 from reaperhulk/serialize-der-public-keysAlex Gaynor2015-03-101-8/+23
|\ | | | | support DER serialization of public keys
| * support DER serialization of public keysPaul Kehrer2015-03-101-8/+23
| |
* | Fixed the deprecation warnings being triggered by the testsAlex Gaynor2015-03-101-1/+1
|/
* make tests properly skip on OpenSSLs without EC supportPaul Kehrer2015-03-081-0/+4
|
* serialize EC public keysPaul Kehrer2015-03-081-1/+69
|
* format to privateformatPaul Kehrer2015-03-021-7/+10
|
* skip those tests if ec unsupportedPaul Kehrer2015-03-011-0/+7
|
* add support for serialization of EC private keysPaul Kehrer2015-03-011-2/+162
|
* move EC interfacesPaul Kehrer2015-02-121-4/+4
|
* Removed some deprecated codeAlex Gaynor2014-12-241-19/+0
|
* add NotImplemented handlingPaul Kehrer2014-12-101-0/+2
|
* add __ne__ and __eq__ methods to RSA, DSA, and EC numbers classesPaul Kehrer2014-12-101-0/+35
| | | | fixes #1449
* add encode_rfc6979_signature and refactor tests to use itPaul Kehrer2014-11-271-11/+7
|
* Update the license header for every source file, as well as the documentation.Alex Gaynor2014-11-161-13/+3
| | | | Fixes #1209
* Don't mark this test class as implementing the interface.Alex Gaynor2014-10-301-1/+0
| | | | It doesn't correctly implement it, that's sort of the point of this test.