summaryrefslogtreecommitdiff
path: root/paramiko/ecdsakey.py
diff options
context:
space:
mode:
authorAndrew Wason <rectalogic@rectalogic.com>2019-02-09 11:23:39 -0500
committerAndrew Wason <rectalogic@rectalogic.com>2019-02-09 11:23:39 -0500
commit893cda63da0f708e4c335a69003746c32ad51895 (patch)
treeda3736fbb732e148daac54a18c3f3be85205e305 /paramiko/ecdsakey.py
parenta2fa7d3f3514b75f23f3992986f08e3ed1212caf (diff)
downloadparamiko-893cda63da0f708e4c335a69003746c32ad51895.tar.gz
Fix numbers vs key mixups
Diffstat (limited to 'paramiko/ecdsakey.py')
-rw-r--r--paramiko/ecdsakey.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/paramiko/ecdsakey.py b/paramiko/ecdsakey.py
index 3e8e2526..b607eee1 100644
--- a/paramiko/ecdsakey.py
+++ b/paramiko/ecdsakey.py
@@ -160,12 +160,11 @@ class ECDSAKey(PKey):
pointinfo = msg.get_binary()
try:
- numbers = ec.EllipticCurvePublicKey.from_encoded_point(
+ self.verifying_key = ec.EllipticCurvePublicKey.from_encoded_point(
self.ecdsa_curve.curve_class(), pointinfo
- ).public_numbers()
+ )
except ValueError:
raise SSHException("Invalid public key")
- self.verifying_key = numbers.public_key(backend=default_backend())
@classmethod
def supported_key_format_identifiers(cls):