mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 19:21:09 +01:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user