mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-17 02:43:26 +00:00
test: use proper macros for PSA init/done
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
4bf73ad83f
commit
3fddf250dc
@ -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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user