aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2014-04-15 16:06:25 -0400
committerDavid Reid <dreid@dreid.org>2014-04-15 16:06:25 -0400
commit1eab656b3fd5537630500a0d6d35fbb157b4c95c (patch)
tree99709197a0e80a7264728abe9d0d50a0c858600e /cryptography
parent99335fe99038c020d557deb8160e0575c04e155b (diff)
parent96c9981e8e4867610216890d9386ee2d8f12e6dd (diff)
downloadcryptography-1eab656b3fd5537630500a0d6d35fbb157b4c95c.tar.gz
cryptography-1eab656b3fd5537630500a0d6d35fbb157b4c95c.tar.bz2
cryptography-1eab656b3fd5537630500a0d6d35fbb157b4c95c.zip
Merge pull request #923 from reaperhulk/rsa-interface-docs
Add missing sign/verify/generate docs for the RSA interfaces
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/primitives/interfaces.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index e70338ba..4d92ef27 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -185,6 +185,12 @@ class HashContext(object):
@six.add_metaclass(abc.ABCMeta)
class RSAPrivateKey(object):
+ @abc.abstractmethod
+ def signer(self, padding, algorithm, backend):
+ """
+ Returns an AsymmetricSignatureContext used for signing data.
+ """
+
@abc.abstractproperty
def modulus(self):
"""
@@ -270,6 +276,12 @@ class RSAPrivateKey(object):
@six.add_metaclass(abc.ABCMeta)
class RSAPublicKey(object):
+ @abc.abstractmethod
+ def verifier(self, signature, padding, algorithm, backend):
+ """
+ Returns an AsymmetricVerificationContext used for verifying signatures.
+ """
+
@abc.abstractproperty
def modulus(self):
"""