[openssl] master update

tomas at openssl.org tomas at openssl.org
Wed Jun 2 15:18:09 UTC 2021


The branch master has been updated
       via  ea8215810319722cf76f777f812688eb3d632678 (commit)
      from  4388417157ce77974888089ec133d26d7bb0f465 (commit)


- Log -----------------------------------------------------------------
commit ea8215810319722cf76f777f812688eb3d632678
Author: Tomas Mraz <tomas at openssl.org>
Date:   Tue Jun 1 14:54:43 2021 +0200

    ed25519 and ed448: fix incorrect OSSL_PKEY_PARAM_MAX_SIZE
    
    Fixes #15552
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/15566)

-----------------------------------------------------------------------

Summary of changes:
 providers/implementations/keymgmt/ecx_kmgmt.c | 4 ++--
 test/evp_pkey_provided_test.c                 | 4 ++--
 2 files changed, 4 insertions(+), 4 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);
 }
 
diff --git a/test/evp_pkey_provided_test.c b/test/evp_pkey_provided_test.c
index 92b3614f6e..bdfa3cd754 100644
--- a/test/evp_pkey_provided_test.c
+++ b/test/evp_pkey_provided_test.c
@@ -979,7 +979,7 @@ static int test_fromdata_ecx(int tst)
         fromdata_params = ed25519_fromdata_params;
         bits = ED25519_BITS;
         security_bits = ED25519_SECURITY_BITS;
-        size = ED25519_KEYLEN;
+        size = ED25519_SIGSIZE;
         alg = "ED25519";
         break;
 
@@ -987,7 +987,7 @@ static int test_fromdata_ecx(int tst)
         fromdata_params = ed448_fromdata_params;
         bits = ED448_BITS;
         security_bits = ED448_SECURITY_BITS;
-        size = ED448_KEYLEN;
+        size = ED448_SIGSIZE;
         alg = "ED448";
         break;
     default:


More information about the openssl-commits mailing list