Question about migrating from d2i_ECPrivateKey() to d2i_PrivateKey(EVP_PKEY_EC, ...)

Nico Williams nico at cryptonector.com
Sat Nov 19 05:33:08 UTC 2022


On Fri, Nov 18, 2022 at 04:53:44PM -0600, Nico Williams wrote:
> I can't use d2i_PrivateKey() because that requires an existing
> EVP_PKEY * that has the group already set.

Although, that's just what's documented.  From code inspection, if the
parameters are found in the encoded private key, then the group will be
set internally and no error will be returned.

Nico
-- 


More information about the openssl-users mailing list