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

Module RSA

RSA public-key cryptography algorithm.
Classes [hide private]
  _RSAobj
  RSAImplementation
  error
Functions [hide private]
 
generate(bits, randfunc=None, progress_func=None)
 
construct(tup)
 
importKey(externKey)
Import an RSA key (public or private half).
Variables [hide private]
  __revision__ = '$Id$'
  _impl = RSAImplementation()
  __package__ = 'Crypto.PublicKey'
Function Details [hide private]

importKey(externKey)

 

Import an RSA key (public or private half).

externKey: the RSA key to import, encoded as a string.
The key can be in DER (PKCS#1) or in unencrypted PEM format (RFC1421).