mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-20 22:05:15 +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
0b304421d8
commit
12a063abb7
1 changed files with 2 additions and 7 deletions
|
|
@ -522,10 +522,7 @@ void pk_utils(int type, int parameter, int bitlen, int len, char *name)
|
|||
{
|
||||
mbedtls_pk_context pk;
|
||||
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
PSA_INIT();
|
||||
#endif
|
||||
|
||||
USE_PSA_INIT();
|
||||
mbedtls_pk_init(&pk);
|
||||
|
||||
TEST_ASSERT(mbedtls_pk_setup(&pk, mbedtls_pk_info_from_type(type)) == 0);
|
||||
|
|
@ -539,9 +536,7 @@ void pk_utils(int type, int parameter, int bitlen, int len, char *name)
|
|||
|
||||
exit:
|
||||
mbedtls_pk_free(&pk);
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
PSA_DONE();
|
||||
#endif
|
||||
USE_PSA_DONE();
|
||||
}
|
||||
/* END_CASE */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue