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

Class RSAobj

pubkey.pubkey --+
                |
               RSAobj

Instance Methods [hide private]
 
_encrypt(self, plaintext, K='')
 
_decrypt(self, ciphertext)
 
_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(): RSAobj Return a new key object containing only the public key information.

Inherited from pubkey.pubkey: __eq__, __getstate__, __init__, __setstate__, 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]

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

size(self)

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

has_private(self)

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

publickey(self)

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