[xmlsec] Generating RSA keys - public and private

Aleksey Sanin aleksey@aleksey.com
Wed, 11 Dec 2002 11:37:14 -0800


>
>
>For RSA, there is a similar function:
>RSA *a RSA_generate_key(1024, 65537, NULL, NULL)
>which returns a structure of BIGNUMS.  What is eluding me is
>which part(s) of the structure is the private key and which is the
>public.
>  
>
RSA public key consist of modulus (RSA::n member) and exponent (RSA::e 
memeber).
The private key consist of modulus (RSA::n member) and private exponent 
(RSA::d member).

Aleksey