[openssl] master update

beldmit at gmail.com beldmit at gmail.com
Thu Jan 13 17:21:33 UTC 2022


The branch master has been updated
       via  79c7acc59bb98c2b8451b048ed1dd8cc517df76e (commit)
      from  3bfb7239daf3d6a89476e163dc925c641d356729 (commit)


- Log -----------------------------------------------------------------
commit 79c7acc59bb98c2b8451b048ed1dd8cc517df76e
Author: Dmitry Belyavskiy <beldmit at gmail.com>
Date:   Wed Jan 12 16:54:45 2022 +0100

    Cleansing all the temporary data for s390x
    
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/17486)

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

Summary of changes:
 crypto/ec/ecp_s390x_nistp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/ec/ecp_s390x_nistp.c b/crypto/ec/ecp_s390x_nistp.c
index 5c70b2d678..c5726c638b 100644
--- a/crypto/ec/ecp_s390x_nistp.c
+++ b/crypto/ec/ecp_s390x_nistp.c
@@ -116,7 +116,7 @@ ret:
     /* Otherwise use default. */
     if (rc == -1)
         rc = ossl_ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx);
-    OPENSSL_cleanse(param + S390X_OFF_SCALAR(len), len);
+    OPENSSL_cleanse(param, sizeof(param));
     BN_CTX_end(ctx);
     BN_CTX_free(new_ctx);
     return rc;
@@ -212,7 +212,7 @@ static ECDSA_SIG *ecdsa_s390x_nistp_sign_sig(const unsigned char *dgst,
 
     ok = 1;
 ret:
-    OPENSSL_cleanse(param + S390X_OFF_K(len), 2 * len);
+    OPENSSL_cleanse(param, sizeof(param));
     if (ok != 1) {
         ECDSA_SIG_free(sig);
         sig = NULL;


More information about the openssl-commits mailing list