diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-06-06 21:49:33 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-06-06 21:49:33 -0700 |
| commit | c9f525fe4740385747cebfbc394a84ebd9bd409b (patch) | |
| tree | 1555805125cba72feacaaffed5cf40f7a3453fa1 /cryptography | |
| parent | 6df90fb03b8ccb642028ba927fa3490ff71d965a (diff) | |
| parent | 0cf031cd137778228c091665785816b2c8a3ccd4 (diff) | |
| download | cryptography-c9f525fe4740385747cebfbc394a84ebd9bd409b.tar.gz cryptography-c9f525fe4740385747cebfbc394a84ebd9bd409b.tar.bz2 cryptography-c9f525fe4740385747cebfbc394a84ebd9bd409b.zip | |
Merge pull request #1100 from reaperhulk/rsa-numbers-remove-public
Remove raw numbers properties from the RSA*Key interfaces
Diffstat (limited to 'cryptography')
| -rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index 0dd1d01a..d805bd1a 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -192,24 +192,6 @@ class RSAPrivateKey(object): """ @abc.abstractproperty - def modulus(self): - """ - The public modulus of the RSA key. - """ - - @abc.abstractproperty - def public_exponent(self): - """ - The public exponent of the RSA key. - """ - - @abc.abstractproperty - def private_exponent(self): - """ - The private exponent of the RSA key. - """ - - @abc.abstractproperty def key_size(self): """ The bit length of the public modulus. @@ -221,58 +203,6 @@ class RSAPrivateKey(object): The RSAPublicKey associated with this private key. """ - @abc.abstractproperty - def n(self): - """ - The public modulus of the RSA key. Alias for modulus. - """ - - @abc.abstractproperty - def p(self): - """ - One of the two primes used to generate d. - """ - - @abc.abstractproperty - def q(self): - """ - One of the two primes used to generate d. - """ - - @abc.abstractproperty - def d(self): - """ - The private exponent. This can be calculated using p and q. Alias for - private_exponent. - """ - - @abc.abstractproperty - def dmp1(self): - """ - A Chinese remainder theorem coefficient used to speed up RSA - calculations. Calculated as: d mod (p-1) - """ - - @abc.abstractproperty - def dmq1(self): - """ - A Chinese remainder theorem coefficient used to speed up RSA - calculations. Calculated as: d mod (q-1) - """ - - @abc.abstractproperty - def iqmp(self): - """ - A Chinese remainder theorem coefficient used to speed up RSA - calculations. The modular inverse of q modulo p - """ - - @abc.abstractproperty - def e(self): - """ - The public exponent of the RSA key. Alias for public_exponent. - """ - @six.add_metaclass(abc.ABCMeta) class RSAPublicKey(object): @@ -283,35 +213,11 @@ class RSAPublicKey(object): """ @abc.abstractproperty - def modulus(self): - """ - The public modulus of the RSA key. - """ - - @abc.abstractproperty - def public_exponent(self): - """ - The public exponent of the RSA key. - """ - - @abc.abstractproperty def key_size(self): """ The bit length of the public modulus. """ - @abc.abstractproperty - def n(self): - """ - The public modulus of the RSA key. Alias for modulus. - """ - - @abc.abstractproperty - def e(self): - """ - The public exponent of the RSA key. Alias for public_exponent. - """ - @six.add_metaclass(abc.ABCMeta) class DSAParameters(object): |
