openssl 3.0.0 equivalent to RSA_get0_key

Dr Paul Dale pauli at openssl.org
Mon Sep 20 22:50:56 UTC 2021


No.

The deprecated functions are not going away any time soon but there is 
no direct replacement.


Pauli

On 21/9/21 6:46 am, Ken Goldman wrote:
> ... and RSA_get0_factors.
>
> I know about EVP_PKEY_get_bn_param().  However, that allocates new 
> bignums.  Therefore, the caller has to say, if >3.0.0, free them, else 
> don't.
>
> The deprecated get0 functions just returned pointers that did not have 
> to be separately freed.
>
> Is there a call to pass in an EVP_PKEY and get references to existing 
> n,e,p, not allocated bignums?
>



More information about the openssl-users mailing list