Gilles Peskine | e59236f | 2018-01-27 23:32:46 +0100 | [diff] [blame^] | 1 | /* BEGIN_HEADER */ |
2 | #include "psa/crypto.h" | ||||
3 | /* END_HEADER */ | ||||
4 | |||||
5 | /* BEGIN_DEPENDENCIES | ||||
6 | * depends_on:MBEDTLS_PSA_CRYPTO_C | ||||
7 | * END_DEPENDENCIES | ||||
8 | */ | ||||
9 | |||||
10 | /* BEGIN_CASE */ | ||||
11 | void init_deinit() | ||||
12 | { | ||||
13 | psa_status_t ret; | ||||
14 | int i; | ||||
15 | for( i = 0; i <= 1; i++ ) | ||||
16 | { | ||||
17 | ret = psa_crypto_init( ); | ||||
18 | TEST_ASSERT( ret == PSA_SUCCESS ); | ||||
19 | ret = psa_crypto_init( ); | ||||
20 | TEST_ASSERT( ret == PSA_SUCCESS ); | ||||
21 | mbedtls_psa_crypto_free( ); | ||||
22 | } | ||||
23 | } | ||||
24 | /* END_CASE */ |