mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user