diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-01-20 17:24:41 -0600 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2019-01-20 17:24:41 -0600 |
commit | 2de450a2166e6a390f2d9e121b3d660b049b1807 (patch) | |
tree | eae6eb157b62d6181364bbdeaf490aa48d9648d9 /src/cryptography/x509/extensions.py | |
parent | a07b1f5463361570c3248c1096ffd8b3bff0bfa5 (diff) | |
download | cryptography-2de450a2166e6a390f2d9e121b3d660b049b1807.tar.gz cryptography-2de450a2166e6a390f2d9e121b3d660b049b1807.tar.bz2 cryptography-2de450a2166e6a390f2d9e121b3d660b049b1807.zip |
deprecate encode_point and migrate all internal callers (#4720)
Diffstat (limited to 'src/cryptography/x509/extensions.py')
-rw-r--r-- | src/cryptography/x509/extensions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index bdd445d9..88afa310 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -35,7 +35,10 @@ def _key_identifier_from_public_key(public_key): serialization.PublicFormat.PKCS1, ) elif isinstance(public_key, EllipticCurvePublicKey): - data = public_key.public_numbers().encode_point() + data = public_key.public_bytes( + serialization.Encoding.X962, + serialization.PublicFormat.UncompressedPoint + ) else: # This is a very slow way to do this. serialized = public_key.public_bytes( |