Project

General

Profile

« Previous | Next » 

Revision 0e11d2c3

Added by bannable (Joe Truba) over 2 years ago

[ruby/openssl] pkey/ec: check private key validity with OpenSSL 3

The behavior of EVP_PKEY_public_check changed between OpenSSL 1.1.1
and 3.0 so that it no longer validates the private key. Instead, private
keys can be validated through EVP_PKEY_private_check and
EVP_PKEY_pairwise_check.

[ky: simplified condition to use either EVP_PKEY_check() or
EVP_PKEY_public_check().]

https://github.com/ruby/openssl/commit/e38a63ab3d