summaryrefslogtreecommitdiff
path: root/src/cryptography/hazmat/backends/openssl/ec.py
Commit message (Collapse)AuthorAgeFilesLines
* support equality checks on all public asymmetric key types (#8700)Paul Kehrer2023-04-101-0/+9
| | | | | * support equality checks on all public asymmetric key types * review feedback
* Use from __future__ import annotations everywhere (#8643)Alex Gaynor2023-03-311-9/+11
|
* Remove use of deprecated EC functions (#8459)Alex Gaynor2023-03-061-4/+6
|
* Use the ruff 'pyupgrade' checks (#8104)Alex Gaynor2023-01-201-1/+1
|
* fixes #7005 -- check if public keys are at infinity earlier (#7020)Alex Gaynor2022-04-021-0/+13
| | | to infinity, and beyond!
* Improve type coverage on some backend internals (#6776)Alex Gaynor2022-01-021-2/+2
|
* type more asym internals (#6758)Paul Kehrer2021-12-261-8/+19
|
* simplify _calculate_digest_and_algorithm (#6719)Paul Kehrer2021-12-221-5/+3
|
* remove signer/verifier as they've been deprecated for 4.25 years (#6639)Paul Kehrer2021-12-031-81/+3
| | | | | * remove signer/verifier as they've been deprecated for 4.25 years * fix coverage
* Remove read_only_property and precisely type all these getters (#6668)Alex Gaynor2021-11-291-2/+6
| | | | | | | * Remove read_only_property and precisely type all these getters * flake8 * unused
* x509 tests for boring (#6590)Paul Kehrer2021-11-121-4/+4
|
* switch to evp_pkey_derive for ECDH (#5973)Paul Kehrer2021-04-141-13/+2
| | | remove unused lower level bindings, improve error msg
* add EC type hinting (#5729)Paul Kehrer2021-01-311-32/+74
|
* make PrivateKeyWithSerialization an alias of PrivateKey (#5722)Paul Kehrer2021-01-311-2/+2
| | | | | * make PrivateKeyWithSerialization an alias of PrivateKey * black
* Remove __future__ import from our code (#5610)Alex Gaynor2020-12-091-1/+0
|
* Delete all the 1.0.2 code (#5511)Alex Gaynor2020-10-251-3/+3
|
* handle unnamed-but-really-named curves in 1.0.2u (#5362)Paul Kehrer2020-07-301-7/+2
| | | | | | | | | * handle unnamed-but-really-named curves in 1.0.2u * handle openssl 1.0.2 not supporting better install commands on make * do what openssl didn't feel was necessary in 1.0.2t/u I didn't bind the named curve constant, fight me.
* Paint it Black by the Rolling Stones (#5324)Alex Gaynor2020-07-201-38/+31
|
* 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
| |