aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/hazmat/backends/openssl/ec.py
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup serialize (#5149)Marko Kreen2020-05-251-4/+1
| | | | | | | | | | | | | | * Additional tests for public/private_bytes They expose few places that raise TypeError and AssertionError! before, and ValueError later. * Cleanup of private_bytes() backend Also pass key itself down to backend. * Cleanup of public_bytes() backend * Test handling of unsupported key type
* update openssls (#4995)Paul Kehrer2019-10-151-3/+15
| | | | | | | | | | * update openssls * missed one * what will this do * only do this check for 1.1.0+
* Simplify string formatting (#4757)Alex Gaynor2019-02-201-1/+1
|
* add support for encoding compressed points (#4638)Paul Kehrer2019-01-201-7/+50
| | | | | | * add support for encoding compressed points * review feedback
* centralize our bytes check (#4622)Paul Kehrer2018-12-021-2/+1
| | | this will make life a bit easier when we support bytearrays
* deprecate signer/verifier on asymmetric keys (#3663)Paul Kehrer2017-06-031-1/+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-1/+3
| | | | | | * 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/+8
|
* Fixes #3538 -- Make our OpenSSL EC verifier's implementation match the API ↵Alex Gaynor2017-05-101-3/+2
| | | | | | | | | | | | | | (#3539) * Document our real API for EC verification, not an accident * formatting consistency * fix the code itself * fixed class name * fixed a test too
* Fixed #3422 -- Remove some legacy code which is now in 1.0.1 (#3423)Alex Gaynor2017-03-011-2/+2
| | | | | | | | | | * Fixed #3422 -- Remove some legacy code which is now in 1.0.1 * _int_to_bn doesnt like negatives * minimize the diff * some additional cleanup
* Drop 1.0.0 (#3312)Alex Gaynor2016-12-131-38/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * delete the 1.0.0 support * drop the version check * drop the AES-CTR stuff * Update the example * openssl truncates for us now * delete unused test * unused imports * Remove a bunch of conditional bindings for NPN * no more 1.0.0 builders * libressl fix * update the docs * remove dead branches * oops * this is a word, damnit * spelling * try removing this * this test is not needed * unused import
* add support for prehashing in ECDSA sign/verify (#3267)Paul Kehrer2016-11-201-23/+34
| | | | | | * add support for prehashing in ECDSA sign/verify * move signature_algorithm check to its own function
* refactor ecdsa sign/verify for prehash (#3263)Paul Kehrer2016-11-191-34/+31
|
* fix warnings in cffi 1.8.3 due to wrong buffer types (#3155)Paul Kehrer2016-09-211-1/+1
|
* One shot sign/verification ECDSA (#3029)Aviv Palivoda2016-07-021-0/+10
| | | | | | | | | | | | | | * 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/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* please flake8Alex Gaynor2015-10-291-1/+1
|
* Error cleanly if the public and private keys to an ECDH key exchange are on ↵Alex Gaynor2015-10-281-0/+5
| | | | different curves
* a refactor to the APIAlex Gaynor2015-10-171-0/+25
|
* convert the rest of the openssl backend to using openssl_assertPaul Kehrer2015-09-251-12/+12
|
* Move signature type checksStanisław Pitucha2015-08-141-2/+3
| | | | Move the point of checking signatures, as suggested by alex in PR 2262.
* Enforce signature type in ECDSA and add testsStanisław Pitucha2015-08-121-0/+2
| | | | | Ensure that ECDSA signatures are bytes to match RSA/DSA and add tests for all three.
* evp_pkey in openssl asymmetric key constructorsPaul Kehrer2015-06-201-21/+9
|
* Use the new names to reference these classesAlex Gaynor2015-03-111-1/+1
|
* refactor OpenSSL backend private_key_bytesPaul Kehrer2015-03-111-1/+0
|
* support DER serialization of public keysPaul Kehrer2015-03-101-1/+0
|
* serialize EC public keysPaul Kehrer2015-03-081-1/+22
|
* add support for serialization of EC private keysPaul Kehrer2015-03-011-1/+18
|
* move asymmetric signature/verification interfacesPaul Kehrer2015-02-161-4/+6
|
* move EC interfacesPaul Kehrer2015-02-121-2/+2
|
* Merge pull request #1538 from reaperhulk/named-curveAlex Gaynor2014-12-171-0/+14
|\ | | | | Set OPENSSL_EC_NAMED_CURVE on our EC_KEY instances
| * british english? never heard of it.Paul Kehrer2014-12-171-2/+2
| |
| * mark named curve inside EC key classesPaul Kehrer2014-12-171-2/+14
| |
| * Set OPENSSL_EC_NAMED_CURVE on our EC_KEY instancesAlex Stapleton2014-12-171-0/+2
| | | | | | | | | | This means any X.509 certs generated from our keys will be encoded along with the curve OID so that we can still load them afterwards.
* | move the NID_undef check for EC named curvePaul Kehrer2014-12-171-1/+7
|/
* Update the license header for every source file, as well as the documentation.Alex Gaynor2014-11-161-12/+3
| | | | Fixes #1209
* Move the cryptography package into a src/ subdirectoryDonald Stufft2014-11-131-0/+234
Due to differences in how py.test determines which module to ``import`` the test suite actually runs against the cryptography which is in the *current* directory instead of the cryptography which is installed. The problem essentially boils down to when there is a tests/__init__.py then py.test adds the current directory to the front of the sys.path, causing it to take precedence over the installed location. This means that running the tests relies on the implicit compile that CFFI does instead of testing against what people will actually be runnning, which is the module compiled by setup.py.