PEM: always use MD light

Note: PEM_PARSE already auto-enables MD_LIGHT in build_info.h

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2023-03-16 10:20:29 +01:00
parent 0baad53ac9
commit 1c2008fa37
3 changed files with 7 additions and 93 deletions

View file

@ -44,6 +44,8 @@ void mbedtls_pem_read_buffer(char *header, char *footer, char *data,
size_t pwd_len = strlen(pwd);
const unsigned char *buf;
MD_PSA_INIT();
mbedtls_pem_init(&ctx);
ret = mbedtls_pem_read_buffer(&ctx, header, footer, (unsigned char *) data,
@ -60,5 +62,6 @@ void mbedtls_pem_read_buffer(char *header, char *footer, char *data,
exit:
mbedtls_pem_free(&ctx);
MD_PSA_DONE();
}
/* END_CASE */