Package Crypto :: Package PublicKey :: Module RSA :: Class RSAobj_c
[hide private]
[frames] | no frames]

Class RSAobj_c

pubkey.pubkey --+
                |
               RSAobj_c

Instance Methods [hide private]
 
__init__(self, key)
 
__getattr__(self, attr)
 
__getstate__(self)
To keep key objects platform-independent, the key data is converted to standard Python long integers before being written out.
 
__setstate__(self, state)
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.
 
_encrypt(self, plain, K)
 
_decrypt(self, cipher)
 
_sign(self, M, K)
 
_verify(self, M, sig)
 
_blind(self, M, B)
 
_unblind(self, M, B)
 
can_blind(self)
can_blind() : bool Return a Boolean value recording whether this algorithm can blind data.
 
size(self)
size() : int Return the maximum number of bits that can be handled by this key.
 
has_private(self)
has_private() : bool Return a Boolean denoting whether the object contains private components.
 
publickey(self)
publickey(): object Return a new key object containing only the public information.

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

Class Variables [hide private]
  keydata = ['n', 'e', 'd', 'p', 'q', 'u']
Method Details [hide private]

__init__(self, key)
(Constructor)

 
Overrides: pubkey.pubkey.__init__

__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, state)

 
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)

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)

size(self)

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

has_private(self)

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

publickey(self)

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