RSA_set0_key() equivalent for 3.0.0
William Roberts
bill.c.roberts at gmail.com
Wed Jul 14 14:30:00 UTC 2021
On Wed, Jul 14, 2021, 09:27 Ken Goldman <kgoldman at us.ibm.com> wrote:
> On 7/13/2021 5:14 PM, William Roberts wrote:
> > Outside of the migration guide others have pointed out, I think the
> functions you need are:
> >
> > https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_set1_RSA.html <
> https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_set1_RSA.html>
> >
> > Use use EVP level now as pointed out in the guide.
>
> Perhaps I'm reading it incorrectly, but I think that API is
> deprecated.
>
> 1 - When I read the SYNOPSIS, there are a few APIs, then a
> "deprecated since OpenSSL 3.0" separator, and then more APIs.
>
> I thought that APIs below the separator are deprecated.
> Is that wrong?
>
> 2 - In evp.h, there is this:
>
> OSSL_DEPRECATEDIN_3_0
> int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key);
>
> I interpreted that to mean it's deprecated.
>
> Is that wrong?
>
> 3 - When I try to use it, I get:
>
> warning: 'EVP_PKEY_set1_RSA' is deprecated (declared at
> openssl/include/openssl/evp.h:1344)
>
> Seems deprecated.
>
Matt Caswell pointed out that you want EVP_PKEY_fromdata()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20210714/0d55fff4/attachment.html>
More information about the openssl-users
mailing list