Add missing PSA init

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2023-08-03 11:54:25 +02:00
parent 1bdd76e950
commit 46712c644e

View file

@ -78,7 +78,7 @@ void pk_parse_public_keyfile_ec(char *key_file, int result)
int res;
mbedtls_pk_init(&ctx);
USE_PSA_INIT();
MD_PSA_INIT();
res = mbedtls_pk_parse_public_keyfile(&ctx, key_file);
@ -99,7 +99,7 @@ void pk_parse_public_keyfile_ec(char *key_file, int result)
exit:
mbedtls_pk_free(&ctx);
USE_PSA_DONE();
MD_PSA_DONE();
}
/* END_CASE */