PK: zeroize dummy signature just to be sure

The signature of a dummy hash for which no pre-image is know is probably
not sensitive, but zeroize it anyway.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard
2026-02-27 10:17:28 +01:00
parent 81ecc37372
commit 571d78361a

View File

@@ -1365,7 +1365,7 @@ static int rsa_alt_check_pair(mbedtls_pk_context *pub, mbedtls_pk_context *prv,
}
cleanup:
mbedtls_free(sig);
mbedtls_zeroize_and_free(sig, sig_size);
return ret;
}
#endif /* MBEDTLS_RSA_C */