On 15/9/21 9:19 am, Ken Goldman wrote: > irc = EVP_PKEY_fromdata_init(ctx); > irc = EVP_PKEY_fromdata(ctx, (EVP_PKEY **)rsa_pub_key, /* freed by > caller */ > EVP_PKEY_PUBLIC_KEY, params); Do you mean : irc = EVP_PKEY_fromdata(ctx, &rsa_pub_key, EVP_PKEY_PUBLIC_KEY, params); here? The cast looks wrong. Pauli