diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-10-19 18:00:41 -0700 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-10-19 18:00:41 -0700 |
commit | 514f7d9446c46cb5d39f760bd64f4f986e6324dc (patch) | |
tree | 57373986ed2f1db1e84b6c79fcea11a9a42b2b8e | |
parent | 641ad5838a5613a3b7c287cb3444550a2fc01dc3 (diff) | |
download | cryptography-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.py | 12 |
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): |