|  |  | 
Crypto.PublicKey.pubkey.pubkey
DSAobj
DSAobj
DSAobj_c
exceptions.Exception(exceptions.BaseException)
_fastmath.error
 
 
| class DSAobj(Crypto.PublicKey.pubkey.pubkey)
 |  |  |  | Methods defined here: 
 can_encrypt(self)Return a Boolean value recording whether this algorithm can encrypt data.
 can_sign(self)Return a Boolean value recording whether this algorithm can generate signatures.
 has_private(self)Return a Boolean denoting whether the object containsprivate components.
 publickey(self)Return a new key object containing only the public information.
 size(self)Return the maximum number of bits that can be handled by this key.
 Data and other attributes defined here:
 
 keydata = ['y', 'g', 'p', 'q', 'x']
 Methods inherited from Crypto.PublicKey.pubkey.pubkey:
 
 __eq__(self, other)__eq__(other): 0, 1Compare us to other for equality.
 __getstate__(self)To keep key objects platform-independent, the key data isconverted to standard Python long integers before being
 written out.  It will then be reconverted as necessary on
 restoration.
 __init__(self)
 __ne__(self, other)__ne__(other): 0, 1Compare us to other for inequality.
 __setstate__(self, d)On unpickling a key object, the key data is converted to the bignumber representation being used, whether that is Python long
 integers, MPZ objects, or whatever.
 blind(self, M, B)blind(M : string|long, B : string|long) : string|longBlind message M using blinding factor B.
 can_blind(self)can_blind() : boolReturn a Boolean value recording whether this algorithm can
 blind data.  (This does not imply that this
 particular key object has the private information required to
 to blind a message.)
 decrypt(self, ciphertext)decrypt(ciphertext:tuple|string|long): stringDecrypt 'ciphertext' using this key.
 encrypt(self, plaintext, K)encrypt(plaintext:string|long, K:string|long) : tupleEncrypt the string or integer plaintext.  K is a random
 parameter required by some algorithms.
 sign(self, M, K)sign(M : string|long, K:string|long) : tupleReturn a tuple containing the signature for the message M.
 K is a random parameter required by some algorithms.
 unblind(self, M, B)unblind(M : string|long, B : string|long) : string|longUnblind message M using blinding factor B.
 validate(self, M, signature)# alias to compensate for the old validate() name
 verify(self, M, signature)verify(M:string|long, signature:tuple) : boolVerify that the signature is valid for the message M;
 returns true if the signature checks out.
 |  
 
| class DSAobj_c(Crypto.PublicKey.pubkey.pubkey)
 |  |  |  | Methods defined here: 
 __getattr__(self, attr)
 __getstate__(self)
 __init__(self, key)
 __setstate__(self, state)
 can_encrypt(self)
 can_sign(self)
 has_private(self)
 publickey(self)
 size(self)
 Data and other attributes defined here:
 
 keydata = ['y', 'g', 'p', 'q', 'x']
 Methods inherited from Crypto.PublicKey.pubkey.pubkey:
 
 __eq__(self, other)__eq__(other): 0, 1Compare us to other for equality.
 __ne__(self, other)__ne__(other): 0, 1Compare us to other for inequality.
 blind(self, M, B)blind(M : string|long, B : string|long) : string|longBlind message M using blinding factor B.
 can_blind(self)can_blind() : boolReturn a Boolean value recording whether this algorithm can
 blind data.  (This does not imply that this
 particular key object has the private information required to
 to blind a message.)
 decrypt(self, ciphertext)decrypt(ciphertext:tuple|string|long): stringDecrypt 'ciphertext' using this key.
 encrypt(self, plaintext, K)encrypt(plaintext:string|long, K:string|long) : tupleEncrypt the string or integer plaintext.  K is a random
 parameter required by some algorithms.
 sign(self, M, K)sign(M : string|long, K:string|long) : tupleReturn a tuple containing the signature for the message M.
 K is a random parameter required by some algorithms.
 unblind(self, M, B)unblind(M : string|long, B : string|long) : string|longUnblind message M using blinding factor B.
 validate(self, M, signature)# alias to compensate for the old validate() name
 verify(self, M, signature)verify(M:string|long, signature:tuple) : boolVerify that the signature is valid for the message M;
 returns true if the signature checks out.
 |  
 
 
| object = class DSAobj(Crypto.PublicKey.pubkey.pubkey)
 |  |  |  | Methods defined here: 
 can_encrypt(self)Return a Boolean value recording whether this algorithm can encrypt data.
 can_sign(self)Return a Boolean value recording whether this algorithm can generate signatures.
 has_private(self)Return a Boolean denoting whether the object containsprivate components.
 publickey(self)Return a new key object containing only the public information.
 size(self)Return the maximum number of bits that can be handled by this key.
 Data and other attributes defined here:
 
 keydata = ['y', 'g', 'p', 'q', 'x']
 Methods inherited from Crypto.PublicKey.pubkey.pubkey:
 
 __eq__(self, other)__eq__(other): 0, 1Compare us to other for equality.
 __getstate__(self)To keep key objects platform-independent, the key data isconverted to standard Python long integers before being
 written out.  It will then be reconverted as necessary on
 restoration.
 __init__(self)
 __ne__(self, other)__ne__(other): 0, 1Compare us to other for inequality.
 __setstate__(self, d)On unpickling a key object, the key data is converted to the bignumber representation being used, whether that is Python long
 integers, MPZ objects, or whatever.
 blind(self, M, B)blind(M : string|long, B : string|long) : string|longBlind message M using blinding factor B.
 can_blind(self)can_blind() : boolReturn a Boolean value recording whether this algorithm can
 blind data.  (This does not imply that this
 particular key object has the private information required to
 to blind a message.)
 decrypt(self, ciphertext)decrypt(ciphertext:tuple|string|long): stringDecrypt 'ciphertext' using this key.
 encrypt(self, plaintext, K)encrypt(plaintext:string|long, K:string|long) : tupleEncrypt the string or integer plaintext.  K is a random
 parameter required by some algorithms.
 sign(self, M, K)sign(M : string|long, K:string|long) : tupleReturn a tuple containing the signature for the message M.
 K is a random parameter required by some algorithms.
 unblind(self, M, B)unblind(M : string|long, B : string|long) : string|longUnblind message M using blinding factor B.
 validate(self, M, signature)# alias to compensate for the old validate() name
 verify(self, M, signature)verify(M:string|long, signature:tuple) : boolVerify that the signature is valid for the message M;
 returns true if the signature checks out.
 |  |