aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/hazmat/primitives/serialization/ssh.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-12-12 08:08:27 +0800
committerAlex Gaynor <alex.gaynor@gmail.com>2018-12-11 19:08:27 -0500
commit4c5740a6747b78502f432b662024e5bf6a4ae8c4 (patch)
treec245a60d06c205cb9c744ea03aeb1b9172abe45e /src/cryptography/hazmat/primitives/serialization/ssh.py
parent0143367da8896d4c188df390ba3fad868b770d02 (diff)
downloadcryptography-4c5740a6747b78502f432b662024e5bf6a4ae8c4.tar.gz
cryptography-4c5740a6747b78502f432b662024e5bf6a4ae8c4.tar.bz2
cryptography-4c5740a6747b78502f432b662024e5bf6a4ae8c4.zip
Compressed point support (#4629)
* compressed point support * refactor to use oct2point directly * small docs change * remove deprecation for the moment and a bit of review feedback * no backend arg, implicitly import it * missed a spot * double oops * remove superfluous call * use refactored method * use vector file * one last item
Diffstat (limited to 'src/cryptography/hazmat/primitives/serialization/ssh.py')
-rw-r--r--src/cryptography/hazmat/primitives/serialization/ssh.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/primitives/serialization/ssh.py b/src/cryptography/hazmat/primitives/serialization/ssh.py
index f58ff074..cb838927 100644
--- a/src/cryptography/hazmat/primitives/serialization/ssh.py
+++ b/src/cryptography/hazmat/primitives/serialization/ssh.py
@@ -99,8 +99,7 @@ def _load_ssh_ecdsa_public_key(expected_key_type, decoded_data, backend):
"Compressed elliptic curve points are not supported"
)
- numbers = ec.EllipticCurvePublicNumbers.from_encoded_point(curve, data)
- return numbers.public_key(backend)
+ return ec.EllipticCurvePublicKey.from_encoded_point(curve, data)
def _ssh_read_next_string(data):