Ensure EC keys with a private key but without a public key can be created
authorMatt Caswell <matt@openssl.org>
Thu, 21 Jan 2021 15:12:30 +0000 (15:12 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 1 Feb 2021 08:59:27 +0000 (08:59 +0000)
commitec7aef3356336012f77101f5c97e2e736e0c61ee
tree6c9ad6a7cd14330c1fe93c2d7c727c5c11c92b13
parenta2a5506b9329b978a2a5b11a518b9789446ad310
Ensure EC keys with a private key but without a public key can be created

In 1.1.1 and earlier it was possible to create EC_KEYs that did not have
the public key in it. We need to ensure that this continues to work in 3.0.

Fixes #12612

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13922)
providers/implementations/keymgmt/ec_kmgmt.c