1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Merge pull request #7496 from valeriosetti/issue7480

Fix test gap in PK write: private (opaque) -> public
This commit is contained in:
Manuel Pégourié-Gonnard
2023-05-03 12:39:49 +02:00
committed by GitHub
7 changed files with 84 additions and 4 deletions

View File

@ -904,6 +904,7 @@ int mbedtls_pk_wrap_as_opaque(mbedtls_pk_context *pk,
/* import private key into PSA */
status = psa_import_key(&attributes, d, d_len, key);
mbedtls_platform_zeroize(d, sizeof(d));
if (status != PSA_SUCCESS) {
return PSA_PK_TO_MBEDTLS_ERR(status);
}