mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-01-06 11:41:12 +03:00
test: use proper macros for PSA init/done
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
@@ -101,10 +101,7 @@ void pk_parse_keyfile_ec(char *key_file, char *password, int result)
|
||||
mbedtls_pk_context ctx;
|
||||
int res;
|
||||
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
PSA_INIT();
|
||||
#endif
|
||||
|
||||
USE_PSA_INIT();
|
||||
mbedtls_pk_init(&ctx);
|
||||
|
||||
res = mbedtls_pk_parse_keyfile(&ctx, key_file, password,
|
||||
@@ -121,9 +118,7 @@ void pk_parse_keyfile_ec(char *key_file, char *password, int result)
|
||||
|
||||
exit:
|
||||
mbedtls_pk_free(&ctx);
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
PSA_DONE();
|
||||
#endif
|
||||
USE_PSA_DONE();
|
||||
}
|
||||
/* END_CASE */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user