Blame SOURCES/0046-FIPS-s390x-hardening.patch
|
|
bf760f |
diff --git a/crypto/ec/ecp_s390x_nistp.c b/crypto/ec/ecp_s390x_nistp.c
|
|
|
bf760f |
index 5c70b2d67840..c5726c638bdd 100644
|
|
|
bf760f |
--- a/crypto/ec/ecp_s390x_nistp.c
|
|
|
bf760f |
+++ b/crypto/ec/ecp_s390x_nistp.c
|
|
|
bf760f |
@@ -116,7 +116,7 @@ static int ec_GFp_s390x_nistp_mul(const EC_GROUP *group, EC_POINT *r,
|
|
|
bf760f |
/* Otherwise use default. */
|
|
|
bf760f |
if (rc == -1)
|
|
|
bf760f |
rc = ossl_ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx);
|
|
|
bf760f |
- OPENSSL_cleanse(param + S390X_OFF_SCALAR(len), len);
|
|
|
bf760f |
+ OPENSSL_cleanse(param, sizeof(param));
|
|
|
bf760f |
BN_CTX_end(ctx);
|
|
|
bf760f |
BN_CTX_free(new_ctx);
|
|
|
bf760f |
return rc;
|
|
|
bf760f |
@@ -212,7 +212,7 @@ static ECDSA_SIG *ecdsa_s390x_nistp_sign_sig(const unsigned char *dgst,
|
|
|
bf760f |
|
|
|
bf760f |
ok = 1;
|
|
|
bf760f |
ret:
|
|
|
bf760f |
- OPENSSL_cleanse(param + S390X_OFF_K(len), 2 * len);
|
|
|
bf760f |
+ OPENSSL_cleanse(param, sizeof(param));
|
|
|
bf760f |
if (ok != 1) {
|
|
|
bf760f |
ECDSA_SIG_free(sig);
|
|
|
bf760f |
sig = NULL;
|