diff options
author | David Benjamin <davidben@davidben.net> | 2018-05-14 13:00:02 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2018-05-14 13:00:02 -0400 |
commit | 6639dd15a7847fae731b29ce01f98cba79757838 (patch) | |
tree | 4d1e29dac7432d0edcb308dc9ebdc32c313b5291 /src/cryptography/hazmat/bindings/openssl/_conditional.py | |
parent | ce6fe07632c17f16221f02ad19c6875327cdd10a (diff) | |
download | cryptography-6639dd15a7847fae731b29ce01f98cba79757838.tar.gz cryptography-6639dd15a7847fae731b29ce01f98cba79757838.tar.bz2 cryptography-6639dd15a7847fae731b29ce01f98cba79757838.zip |
Clean up unused EC bindings. (#4225)
* Clean up unused EC bindings.
A lot of these are really OpenSSL internals, like the EC_METHOD
business, support for custom curves which are a bad idea, and weird
non-standard serializations like taking the usual point serialization
and treating it as a single BIGNUM.
I also didn't remove things when they're arguably part of a set. E.g.
EC_POINT_add is used, but EC_POINT_dbl isn't. However, they both set at
the same abstraction level (basic point operations), so it's strange to
have one without the other.
I also kept EC_POINT_is_on_curve because, although it is not used,
OpenSSL prior to 1.1.0 doesn't perform this important check in
EC_POINT_set_affine_coordinates_GFp (though it does in some of the
functions which ultimately call it, like
EC_KEY_set_public_key_affine_coordinates, what cryptography.io actually
uses), so one should not expose the latter without the former.
* Fix build issue.
Diffstat (limited to 'src/cryptography/hazmat/bindings/openssl/_conditional.py')
-rw-r--r-- | src/cryptography/hazmat/bindings/openssl/_conditional.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/_conditional.py b/src/cryptography/hazmat/bindings/openssl/_conditional.py index 971e540c..761124f5 100644 --- a/src/cryptography/hazmat/bindings/openssl/_conditional.py +++ b/src/cryptography/hazmat/bindings/openssl/_conditional.py @@ -7,13 +7,9 @@ from __future__ import absolute_import, division, print_function def cryptography_has_ec2m(): return [ - "EC_GF2m_simple_method", "EC_POINT_set_affine_coordinates_GF2m", "EC_POINT_get_affine_coordinates_GF2m", "EC_POINT_set_compressed_coordinates_GF2m", - "EC_GROUP_set_curve_GF2m", - "EC_GROUP_get_curve_GF2m", - "EC_GROUP_new_curve_GF2m", ] |