]> git.ipfire.org Git - thirdparty/openssl.git/commit
Derive EC public key from private key if missing
authorSimo Sorce <simo@redhat.com>
Mon, 3 Nov 2025 21:53:41 +0000 (16:53 -0500)
committerTomas Mraz <tomas@openssl.org>
Mon, 15 Dec 2025 15:50:04 +0000 (16:50 +0100)
commitf9971f0936547abae6dec1e4d778ad333eb38ea6
tree907020da7f7841aa59f231c77932013611e6f5f8
parente12870deb022555dd15678ff745c33ff19b65dfe
Derive EC public key from private key if missing

Update ossl_ec_key_fromdata to compute the public key if it is not provided in
the input parameters but the private key is. This allows for the creation of a
complete EC_KEY object from only private key data.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29054)
crypto/ec/ec_backend.c
test/evp_extra_test.c
test/evp_pkey_dhkem_test.c