aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammed Attia <skeuomorf@gmail.com>2014-03-03 20:49:23 +0200
committerMohammed Attia <skeuomorf@gmail.com>2014-03-03 20:49:23 +0200
commit61b47b989dc87cdc760c9d297fd45f219b64efd1 (patch)
treeb92baadd0e6e763c75c30390b541daf72094a8d5
parentc63092d7555b7943a3de04854ca89c0aa262e905 (diff)
downloadcryptography-61b47b989dc87cdc760c9d297fd45f219b64efd1.tar.gz
cryptography-61b47b989dc87cdc760c9d297fd45f219b64efd1.tar.bz2
cryptography-61b47b989dc87cdc760c9d297fd45f219b64efd1.zip
Change pub_key and priv_key to y and x respectively
-rw-r--r--cryptography/hazmat/primitives/interfaces.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index ee54aafe..4d9e7879 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -341,12 +341,6 @@ class DSAPrivateKey(six.with_metaclass(abc.ABCMeta)):
The bit length of the prime modulus.
"""
- @abc.abstractproperty
- def priv_key(self):
- """
- The private key in the DSA structure.
- """
-
@abc.abstractmethod
def public_key(self):
"""
@@ -354,6 +348,12 @@ class DSAPrivateKey(six.with_metaclass(abc.ABCMeta)):
"""
@abc.abstractproperty
+ def x(self):
+ """
+ The private key "x" in the DSA structure.
+ """
+
+ @abc.abstractproperty
def y(self):
"""
The integer value of y.
@@ -368,9 +368,9 @@ class DSAPrivateKey(six.with_metaclass(abc.ABCMeta)):
class DSAPublicKey(six.with_metaclass(abc.ABCMeta)):
@abc.abstractproperty
- def pub_key(self):
+ def y(self):
"""
- The pub_key that's in the DSA structure.
+ The integer value of y.
"""
@abc.abstractproperty