From a4e95af4b7f871822d1e9af9aa968de0b45e42e4 Mon Sep 17 00:00:00 2001 From: Mohammed Attia Date: Tue, 4 Mar 2014 00:08:20 +0200 Subject: More accurate docstring --- cryptography/hazmat/primitives/interfaces.py | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index a8956b85..bfe9c1da 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -291,20 +291,23 @@ class DSAParams(six.with_metaclass(abc.ABCMeta)): @abc.abstractproperty def modulus(self): """ - The prime modulus that's used in generating the DSA keypair. + The prime modulus that's used in generating the DSA keypair and used + in the DSA signing and verification processes. """ @abc.abstractproperty def subgroup_order(self): """ The subgroup order that's used in generating the DSA keypair - by the generator. + by the generator and used in the DSA signing and verification + processes. """ @abc.abstractproperty def generator(self): """ - The generator that is used in generating the DSA keypair. + The generator that is used in generating the DSA keypair and used + in the DSA signing and verification processes." """ @abc.abstractmethod @@ -316,23 +319,23 @@ class DSAParams(six.with_metaclass(abc.ABCMeta)): @abc.abstractproperty def p(self): """ - The prime modulus that's used in generating the DSA keypair. - Alias for modulus. + The prime modulus that's used in generating the DSA keypair and used + in the DSA signing and verification processes. Alias for modulus. """ @abc.abstractproperty def q(self): """ The subgroup order that's used in generating the DSA keypair - by the generator. - Alias for subgroup_order. + by the generator and used in the DSA signing and verification + processes. Alias for subgroup_order. """ @abc.abstractproperty def g(self): """ - The generator that is used in generating the DSA keypair. - Alias for generator. + The generator that is used in generating the DSA keypair and used + in the DSA signing and verification processes. Alias for generator. """ @@ -358,7 +361,7 @@ class DSAPrivateKey(six.with_metaclass(abc.ABCMeta)): @abc.abstractproperty def y(self): """ - The integer value of y. + The public key. """ @abc.abstractproperty @@ -372,7 +375,7 @@ class DSAPublicKey(six.with_metaclass(abc.ABCMeta)): @abc.abstractproperty def y(self): """ - The integer value of y. + The public key. """ @abc.abstractproperty -- cgit v1.2.3