diff options
author | Jon Spillett <jon.spillett@oracle.com> | 2021-01-13 14:10:51 +1000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-01-15 17:24:41 +0100 |
commit | 2c04b34140be8833dae0e4debcb6ebf5fd0f287c (patch) | |
tree | 17019aebe6688c917b52ac6bdeec596ab241d8b3 /crypto/ec/ec_backend.c | |
parent | 39f3427dc1cd8cf72cf4b3c8c26256874a067bfd (diff) |
Allow EVP_PKEY private key objects to be created without a public component
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13855)
Diffstat (limited to 'crypto/ec/ec_backend.c')
-rw-r--r-- | crypto/ec/ec_backend.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/ec/ec_backend.c b/crypto/ec/ec_backend.c index dccf6a15b9..f950657173 100644 --- a/crypto/ec/ec_backend.c +++ b/crypto/ec/ec_backend.c @@ -245,10 +245,6 @@ int ec_key_fromdata(EC_KEY *ec, const OSSL_PARAM params[], int include_private) if (ctx == NULL) goto err; - /* OpenSSL decree: If there's a private key, there must be a public key */ - if (param_priv_key != NULL && param_pub_key == NULL) - goto err; - if (param_pub_key != NULL) if (!OSSL_PARAM_get_octet_string(param_pub_key, (void **)&pub_key, 0, &pub_key_len) |