Logo Search packages:      
Sourcecode: libtomcrypt version File versions  Download package

int(* ltc_math_descriptor::rsa_keygen)(prng_state *prng, int wprng, int size, long e, rsa_key *key)

RSA Key Generation

Parameters:
prng An active PRNG state
wprng The index of the PRNG desired
size The size of the modulus (key size) desired (octets)
e The "e" value (public key). e==65537 is a good choice
key [out] Destination of a newly created private key pair
Returns:
CRYPT_OK if successful, upon error all allocated ram is freed


Generated by  Doxygen 1.6.0   Back to index