From bcd3e8c1eb4111d9583636bb1e713b1d7808e38f Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 12 Nov 2018 09:57:08 -0500 Subject: add a little bit of x25519 interface docs we missed (#4574) --- src/cryptography/hazmat/primitives/asymmetric/x25519.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') 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. + """ -- cgit v1.2.3