aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-22 16:37:21 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-23 19:45:59 -0600
commit98429643e0453b6ad7f9daa872cccad5f410149a (patch)
tree14cf7eddc46a2a882530f5c90aa7acc041c31295 /cryptography
parentda0841898d247ba167c39019ea958b582a578b70 (diff)
downloadcryptography-98429643e0453b6ad7f9daa872cccad5f410149a.tar.gz
cryptography-98429643e0453b6ad7f9daa872cccad5f410149a.tar.bz2
cryptography-98429643e0453b6ad7f9daa872cccad5f410149a.zip
add DSAWithNumbers subinterfaces
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/primitives/interfaces.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index dd901aae..c375ce9a 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -297,6 +297,15 @@ class DSAParameters(object):
@six.add_metaclass(abc.ABCMeta)
+class DSAParametersWithNumbers(DSAParameters):
+ @abc.abstractmethod
+ def parameter_numbers(self):
+ """
+ Returns a DSAParameterNumbers.
+ """
+
+
+@six.add_metaclass(abc.ABCMeta)
class DSAPrivateKey(object):
@abc.abstractproperty
def key_size(self):
@@ -330,6 +339,15 @@ class DSAPrivateKey(object):
@six.add_metaclass(abc.ABCMeta)
+class DSAPrivateKeyWithNumbers(DSAPrivateKey):
+ @abc.abstractmethod
+ def private_numbers(self):
+ """
+ Returns a DSAPrivateNumbers.
+ """
+
+
+@six.add_metaclass(abc.ABCMeta)
class DSAPublicKey(object):
@abc.abstractproperty
def key_size(self):
@@ -351,6 +369,15 @@ class DSAPublicKey(object):
@six.add_metaclass(abc.ABCMeta)
+class DSAPublicKeyWithNumbers(DSAPublicKey):
+ @abc.abstractmethod
+ def public_numbers(self):
+ """
+ Returns a DSAPublicNumbers.
+ """
+
+
+@six.add_metaclass(abc.ABCMeta)
class AsymmetricSignatureContext(object):
@abc.abstractmethod
def update(self, data):