aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/primitives/asymmetric/x25519.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/cryptography/hazmat/primitives/asymmetric/x25519.py b/src/cryptography/hazmat/primitives/asymmetric/x25519.py
index 5c4652ae..e0329f9d 100644
--- a/src/cryptography/hazmat/primitives/asymmetric/x25519.py
+++ b/src/cryptography/hazmat/primitives/asymmetric/x25519.py
@@ -25,7 +25,9 @@ class X25519PublicKey(object):
@abc.abstractmethod
def public_bytes(self):
- pass
+ """
+ The serialized bytes of the public key.
+ """
@six.add_metaclass(abc.ABCMeta)
@@ -47,8 +49,12 @@ class X25519PrivateKey(object):
@abc.abstractmethod
def public_key(self):
- pass
+ """
+ The serialized bytes of the public key.
+ """
@abc.abstractmethod
def exchange(self, peer_public_key):
- pass
+ """
+ Performs a key exchange operation using the provided peer's public key.
+ """