aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/hazmat/primitives/interfaces.py81
1 files changed, 2 insertions, 79 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index ba6436e0..589b7484 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -336,31 +336,13 @@ class DSAParams(six.with_metaclass(abc.ABCMeta)):
class DSAPrivateKey(six.with_metaclass(abc.ABCMeta)):
@abc.abstractproperty
- def modulus(self):
- """
- The prime modulus that's used in generating the DSA keypair.
- """
-
- @abc.abstractproperty
- def divisor(self):
- """
- The prime divisor of (p-1) that's used in generating the DSA keypair.
- """
-
- @abc.abstractproperty
- def generator(self):
- """
- The generator that is used in generating the DSA keypair.
- """
-
- @abc.abstractproperty
- def modulus_length(self):
+ def key_size(self):
"""
The bit length of the prime modulus.
"""
@abc.abstractproperty
- def divisor_length(self):
+ def divisor_size(self):
"""
The bit length of the divisor.
"""
@@ -378,27 +360,6 @@ class DSAPrivateKey(six.with_metaclass(abc.ABCMeta)):
"""
@abc.abstractproperty
- def p(self):
- """
- The prime modulus that's used in generating the DSA keypair.
- Alias for modulus.
- """
-
- @abc.abstractproperty
- def q(self):
- """
- The prime divisor of (p-1) that's used in generating the DSA keypair.
- Alias for divisor.
- """
-
- @abc.abstractproperty
- def g(self):
- """
- The generator that is used in generating the DSA keypair.
- Alias for generator.
- """
-
- @abc.abstractproperty
def L(self):
"""
The bit length of the prime modulus. Alias for modulus_length.
@@ -426,48 +387,10 @@ class DSAPrivateKey(six.with_metaclass(abc.ABCMeta)):
class DSAPublicKey(six.with_metaclass(abc.ABCMeta)):
@abc.abstractproperty
- def modulus(self):
- """
- The prime modulus that's used in generating the DSA keypair.
- """
-
- @abc.abstractproperty
- def divisor(self):
- """
- The prime divisor of (p-1) that's used in generating the DSA keypair.
- """
-
- @abc.abstractproperty
- def generator(self):
- """
- The generator that is used in generating the DSA keypair.
- """
-
- @abc.abstractproperty
def pub_key(self):
"""
The pub_key that's in the DSA structure, also known as y.
"""
- @abc.abstractproperty
- def p(self):
- """
- The prime modulus that's used in generating the DSA keypair.
- Alias for modulus.
- """
-
- @abc.abstractproperty
- def q(self):
- """
- The prime divisor of (p-1) that's used in generating the DSA keypair.
- Alias for divisor.
- """
-
- @abc.abstractproperty
- def g(self):
- """
- The generator that is used in generating the DSA keypair.
- Alias for generator.
- """
@abc.abstractproperty
def params(self):