error:0308010C:digital envelope routines::unsupported & other EVP_PKEY question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey list,

I am having difficulty trying to allocate an EVP_PKEY_CTX via
EVP_PKEY_CTX_new(3) from a public key loaded via PEN_read_PUBKEY(3).
The former fails with OpenSSL setting the following error:

   error:0308010C:digital envelope routines::unsupported

See L135: https://pastebin.com/5p7MRGGK

I also have another question regarding EVP_PKEY structures since
OpenSSL 3.0. In OpenSSL 1.1.1 my RSA private and public keys were
stored separately in RSA structures. Since OpenSSL 3.0, the RSA
structure is deprecated along with all functions that accepted them as
arguments. Everything now appears to use the higher level algorithm
agnostic EVP_PKEY.

How does one access just the private or public keys within an EVP_PKEY?
The reason I ask is I would like to perform operations that verify that
the public key is valid, the private key is valid, and the two
mathematically correspond.

Any help appreciated.

-- 
Kip Warner
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux