diff options
| author | David Reid <dreid@dreid.org> | 2014-05-13 14:30:45 -0700 |
|---|---|---|
| committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-07 15:08:59 -0500 |
| commit | 3e0c21e274b32d9c6dd2ac41ee8607e37d400e83 (patch) | |
| tree | fae299ad6f38cea12277d39dec757d12fc00c026 /cryptography | |
| parent | 425e5b04bb18ce2e563d891f3502365e3b9c071a (diff) | |
| download | cryptography-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.py | 16 |
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 + """ |
