blob: 9d9eee47bf9b29c60bc59b932c598cdbe22b4a33 [file] [log] [blame]
Gilles Peskinee59236f2018-01-27 23:32:46 +01001/* 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 */
11void 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 */