Changes PSA initialisation

Commit adds in call to PSA_INIT()

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney 2022-04-07 14:57:10 +01:00
parent d868d0f7a0
commit d9c69b7655

View file

@ -2473,7 +2473,7 @@ void aead_decrypt_setup( int key_type_arg, data_t *key_data,
psa_aead_operation_t operation = psa_aead_operation_init();
mbedtls_test_driver_aead_hooks = mbedtls_test_driver_aead_hooks_init();
PSA_ASSERT( psa_crypto_init( ) );
PSA_INIT( );
psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_DECRYPT );
psa_set_key_algorithm( &attributes, alg );