Package Crypto :: Package PublicKey :: Module ElGamal :: Class ElGamalobj
[hide private]
[frames] | no frames]

Class ElGamalobj

pubkey.pubkey --+
                |
               ElGamalobj

Instance Methods [hide private]
 
_encrypt(self, M, K)
 
_decrypt(self, M)
 
_sign(self, M, K)
 
_verify(self, M, sig)
 
size(self)
Return the maximum number of bits that can be handled by this key.
 
has_private(self)
Return a Boolean denoting whether the object contains private components.
 
publickey(self)
Return a new key object containing only the public information.

Inherited from pubkey.pubkey: __eq__, __getstate__, __init__, __ne__, __setstate__, blind, can_blind, can_encrypt, can_sign, decrypt, encrypt, sign, unblind, validate, verify

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

size(self)

 
Return the maximum number of bits that can be handled by this key.
Overrides: pubkey.pubkey.size

has_private(self)

 
Return a Boolean denoting whether the object contains private components.
Overrides: pubkey.pubkey.has_private

publickey(self)

 
Return a new key object containing only the public information.
Overrides: pubkey.pubkey.publickey