aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-19 18:00:41 -0700
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-19 18:00:41 -0700
commit514f7d9446c46cb5d39f760bd64f4f986e6324dc (patch)
tree57373986ed2f1db1e84b6c79fcea11a9a42b2b8e
parent641ad5838a5613a3b7c287cb3444550a2fc01dc3 (diff)
downloadcryptography-514f7d9446c46cb5d39f760bd64f4f986e6324dc.tar.gz
cryptography-514f7d9446c46cb5d39f760bd64f4f986e6324dc.tar.bz2
cryptography-514f7d9446c46cb5d39f760bd64f4f986e6324dc.zip
add missing signer/verifier to DSAPublicKey and DSAPrivateKey ifaces
These were present in the docs and the OpenSSL provider, but not properly listed on the interface
-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 c7ad0cf8..6ae0a4c5 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -287,6 +287,12 @@ class DSAPrivateKey(object):
The DSAParameters object associated with this private key.
"""
+ @abc.abstractmethod
+ def signer(self, signature_algorithm):
+ """
+ Returns an AsymmetricSignatureContext used for signing data.
+ """
+
@six.add_metaclass(abc.ABCMeta)
class DSAPrivateKeyWithNumbers(DSAPrivateKey):
@@ -311,6 +317,12 @@ class DSAPublicKey(object):
The DSAParameters object associated with this public key.
"""
+ @abc.abstractmethod
+ def verifier(self, signature, signature_algorithm):
+ """
+ Returns an AsymmetricVerificationContext used for signing data.
+ """
+
@six.add_metaclass(abc.ABCMeta)
class DSAPublicKeyWithNumbers(DSAPublicKey):