diff options
author | Richard Levitte <levitte@openssl.org> | 2020-09-10 22:06:46 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-09-12 20:24:22 +0200 |
commit | 7229a2f4ab9b4d8cecf44be58adeb14e195ff051 (patch) | |
tree | a53312a3ec4f5d2fa58efded3ebf9a2016b830f4 /crypto/evp | |
parent | 4588f35b5af9bc0d250877ce22915d0cd96f320e (diff) |
EC: Reimplement EVP_PKEY_CTX_set_ec_param_enc() to support providers
Fixes #12852
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12853)
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/pmeth_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index e557e14e18..12f09ed79b 100644 --- a/crypto/evp/pmeth_lib.c +++ b/crypto/evp/pmeth_lib.c @@ -26,6 +26,7 @@ #include "crypto/asn1.h" #include "crypto/evp.h" #include "crypto/dh.h" +#include "crypto/ec.h" #include "internal/ffc.h" #include "internal/numbers.h" #include "internal/provider.h" @@ -1248,6 +1249,8 @@ static int legacy_ctrl_to_param(EVP_PKEY_CTX *ctx, int keytype, int optype, # ifndef OPENSSL_NO_EC if (keytype == EVP_PKEY_EC) { switch (cmd) { + case EVP_PKEY_CTRL_EC_PARAM_ENC: + return evp_pkey_ctx_set_ec_param_enc_prov(ctx, p1); case EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID: return EVP_PKEY_CTX_set_ec_paramgen_curve_nid(ctx, p1); case EVP_PKEY_CTRL_EC_ECDH_COFACTOR: |