diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-06-01 14:54:43 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-06-02 17:17:51 +0200 |
commit | ea8215810319722cf76f777f812688eb3d632678 (patch) | |
tree | 071a9f88e1962d6268244de15a6f37c087f684b2 /providers/implementations | |
parent | 4388417157ce77974888089ec133d26d7bb0f465 (diff) |
ed25519 and ed448: fix incorrect OSSL_PKEY_PARAM_MAX_SIZE
Fixes #15552
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15566)
Diffstat (limited to 'providers/implementations')
-rw-r--r-- | providers/implementations/keymgmt/ecx_kmgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/providers/implementations/keymgmt/ecx_kmgmt.c b/providers/implementations/keymgmt/ecx_kmgmt.c index 9de954651b..b088c03b30 100644 --- a/providers/implementations/keymgmt/ecx_kmgmt.c +++ b/providers/implementations/keymgmt/ecx_kmgmt.c @@ -309,14 +309,14 @@ static int x448_get_params(void *key, OSSL_PARAM params[]) static int ed25519_get_params(void *key, OSSL_PARAM params[]) { return ecx_get_params(key, params, ED25519_BITS, ED25519_SECURITY_BITS, - ED25519_KEYLEN) + ED25519_SIGSIZE) && ed_get_params(key, params); } static int ed448_get_params(void *key, OSSL_PARAM params[]) { return ecx_get_params(key, params, ED448_BITS, ED448_SECURITY_BITS, - ED448_KEYLEN) + ED448_SIGSIZE) && ed_get_params(key, params); } |