Package M2Crypto :: Package PGP :: Module RSA
[frames] | no frames]

Module RSA



M2Crypto PGP2 RSA.

Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.

Classes
  RSA
  RSA_pub
Functions
 
new_pub_key((e, n))
Factory function that instantiates an RSA_pub object from a (e, n) tuple.
Function Details

new_pub_key((e, n))

 

Factory function that instantiates an RSA_pub object from a (e, n) tuple.

'e' is the RSA public exponent; it is a string in OpenSSL's binary format, i.e., a number of bytes in big-endian.

'n' is the RSA composite of primes; it is a string in OpenSSL's binary format, i.e., a number of bytes in big-endian.