We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f65250 commit 3229fceCopy full SHA for 3229fce
src/ecdsa/ecdh.py
@@ -38,8 +38,8 @@ class InvalidSharedSecretError(Exception):
38
class ECDH(object):
39
"""
40
Elliptic-curve Diffie-Hellman (ECDH). A key agreement protocol.
41
-
42
- Allows two parties, each having an elliptic-curve public-private key
+
+ Allows two parties, each having an elliptic-curve public-private key
43
pair, to establish a shared secret over an insecure channel
44
"""""
45
@@ -283,8 +283,8 @@ def generate_sharedsecret_bytes(self):
283
:rtype: byte string
284
285
return number_to_string(
286
- self.generate_sharedsecret(),
287
- self.private_key.curve.order)
+ self.generate_sharedsecret(),
+ self.private_key.curve.order)
288
289
def generate_sharedsecret(self):
290
0 commit comments