aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-06-23 22:10:08 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-06-23 22:10:08 -0700
commitb02485783d05c993fbe4c5518397d8803797ef74 (patch)
tree947c9deeee4b434d3c114f946812d3afd223ec9d /cryptography
parent6dc63acd52e250f2e404f64583947bed56c3ff87 (diff)
parent98429643e0453b6ad7f9daa872cccad5f410149a (diff)
downloadcryptography-b02485783d05c993fbe4c5518397d8803797ef74.tar.gz
cryptography-b02485783d05c993fbe4c5518397d8803797ef74.tar.bz2
cryptography-b02485783d05c993fbe4c5518397d8803797ef74.zip
Merge pull request #1168 from reaperhulk/dsa-with-numbers-interfaces
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):