openssl 3.0.0 equivalent to RSA_get0_key

Ken Goldman kgoldman at us.ibm.com
Mon Sep 20 20:46:49 UTC 2021


... 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