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
commit f57273c817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}