Generate Key
[Keys and Keyrings]


Functions

ops_boolean_t ops_rsa_generate_keypair (const int numbits, const unsigned long e, ops_keydata_t *keydata)
 Generates an RSA keypair.
ops_keydata_tops_rsa_create_selfsigned_keypair (const int numbits, const unsigned long e, ops_user_id_t *userid)
 Creates a self-signed RSA keypair.

Function Documentation

ops_keydata_t* ops_rsa_create_selfsigned_keypair const int  numbits,
const unsigned long  e,
ops_user_id_t userid
 

Creates a self-signed RSA keypair.

Parameters:
numbits Modulus size
e Public Exponent
userid User ID
Returns:
The new keypair or NULL
Note:
It is the caller's responsibility to call ops_keydata_free(keydata)
See also:
ops_rsa_generate_keypair()

ops_keydata_free()

ops_boolean_t ops_rsa_generate_keypair const int  numbits,
const unsigned long  e,
ops_keydata_t keydata
 

Generates an RSA keypair.

Parameters:
numbits Modulus size
e Public Exponent
keydata Pointer to keydata struct to hold new key
Returns:
ops_true if key generated successfully; otherwise ops_false
Note:
It is the caller's responsibility to call ops_keydata_free(keydata)


Generated on Sat May 18 00:00:02 2013 for OpenPGP:SDK by  doxygen 1.4.6