diff options
author | Mohammed Attia <skeuomorf@gmail.com> | 2014-03-03 17:36:00 +0200 |
---|---|---|
committer | Mohammed Attia <skeuomorf@gmail.com> | 2014-03-03 17:36:00 +0200 |
commit | 9db8dbab26d72e842ae1f5f9073a539b2795f4d5 (patch) | |
tree | 38c2c14b78617e1c9a7327ac0efc0ce5f28c4176 | |
parent | 7470453ee9264c6c76f678220bc1b812d194b9df (diff) | |
download | cryptography-9db8dbab26d72e842ae1f5f9073a539b2795f4d5.tar.gz cryptography-9db8dbab26d72e842ae1f5f9073a539b2795f4d5.tar.bz2 cryptography-9db8dbab26d72e842ae1f5f9073a539b2795f4d5.zip |
Change property names to be consistent with RSA
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 81 |
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): |