aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2014-05-13 14:30:45 -0700
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-07 15:08:59 -0500
commit3e0c21e274b32d9c6dd2ac41ee8607e37d400e83 (patch)
treefae299ad6f38cea12277d39dec757d12fc00c026 /cryptography
parent425e5b04bb18ce2e563d891f3502365e3b9c071a (diff)
downloadcryptography-3e0c21e274b32d9c6dd2ac41ee8607e37d400e83.tar.gz
cryptography-3e0c21e274b32d9c6dd2ac41ee8607e37d400e83.tar.bz2
cryptography-3e0c21e274b32d9c6dd2ac41ee8607e37d400e83.zip
Documentation and interfaces for serialization to RSA*Numbers representations.
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/primitives/interfaces.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index d805bd1a..8e0dd873 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -455,3 +455,19 @@ class EllipticCurvePublicKey(object):
"""
The EllipticCurve that this key is on.
"""
+
+
+@six.add_metaclass(abc.ABCMeta)
+class RSAPrivateNumbersSerialization(object):
+ def rsa_private_numbers(self):
+ """
+ Returns an RSAPrivateNumbers.
+ """
+
+
+@six.add_metaclass(abc.ABCMeta)
+class RSAPublicNumbersSerialization(object):
+ def rsa_public_numbers(self):
+ """
+ Returns an RSAPublicNumbers
+ """