Package Crypto :: Package PublicKey :: Module DSA :: Class _DSAobj
[hide private]
[frames] | no frames]

Class _DSAobj

pubkey.pubkey --+
                |
               _DSAobj

Instance Methods [hide private]
 
__init__(self, implementation, key)
 
__getattr__(self, attrname)
 
_encrypt(self, c, K)
 
_decrypt(self, c)
 
_blind(self, m, r)
 
_unblind(self, m, r)
 
_sign(self, m, k)
 
_verify(self, m, sig)
 
has_private(self)
has_private() : bool Return a Boolean denoting whether the object contains private components.
 
size(self)
size() : int Return the maximum number of bits that can be handled by this key.
 
can_blind(self)
can_blind() : bool Return 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.)
 
can_encrypt(self)
can_encrypt() : bool Return a Boolean value recording whether this algorithm can encrypt data. (This does not imply that this particular key object has the private information required to to decrypt a message.)
 
can_sign(self)
can_sign() : bool Return a Boolean value recording whether this algorithm can generate signatures. (This does not imply that this particular key object has the private information required to to generate a signature.)
 
publickey(self)
publickey(): object Return a new key object containing only the public information.
 
__getstate__(self)
To keep key objects platform-independent, the key data is converted to standard Python long integers before being written out. It will then be reconverted as necessary on restoration.
 
__setstate__(self, d)
On unpickling a key object, the key data is converted to the big number representation being used, whether that is Python long integers, MPZ objects, or whatever.
 
__repr__(self)

Inherited from pubkey.pubkey: __eq__, __ne__, blind, decrypt, encrypt, sign, unblind, validate, verify

Class Variables [hide private]
  keydata = ['y', 'g', 'p', 'q', 'x']
Method Details [hide private]

__init__(self, implementation, key)
(Constructor)

 
Overrides: pubkey.pubkey.__init__

has_private(self)

 
has_private() : bool Return a Boolean denoting whether the object contains private components.
Overrides: pubkey.pubkey.has_private
(inherited documentation)

size(self)

 
size() : int Return the maximum number of bits that can be handled by this key.
Overrides: pubkey.pubkey.size
(inherited documentation)

can_blind(self)

 
can_blind() : bool Return 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.)
Overrides: pubkey.pubkey.can_blind
(inherited documentation)

can_encrypt(self)

 
can_encrypt() : bool Return a Boolean value recording whether this algorithm can encrypt data. (This does not imply that this particular key object has the private information required to to decrypt a message.)
Overrides: pubkey.pubkey.can_encrypt
(inherited documentation)

can_sign(self)

 
can_sign() : bool Return a Boolean value recording whether this algorithm can generate signatures. (This does not imply that this particular key object has the private information required to to generate a signature.)
Overrides: pubkey.pubkey.can_sign
(inherited documentation)

publickey(self)

 
publickey(): object Return a new key object containing only the public information.
Overrides: pubkey.pubkey.publickey
(inherited documentation)

__getstate__(self)

 
To keep key objects platform-independent, the key data is converted to standard Python long integers before being written out. It will then be reconverted as necessary on restoration.
Overrides: pubkey.pubkey.__getstate__
(inherited documentation)

__setstate__(self, d)

 
On unpickling a key object, the key data is converted to the big number representation being used, whether that is Python long integers, MPZ objects, or whatever.
Overrides: pubkey.pubkey.__setstate__
(inherited documentation)