1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /*
8  * Test psa_crypto_init() and psa_generate_random() on the PSA implementation
9  * provided by Mbed TLS (platforms using TFM are filtered out in the yaml file).
10  */
11 
12 #include <zephyr/ztest.h>
13 
14 #include <psa/crypto.h>
15 
ZTEST_USER(test_fn,test_mbedtls_psa)16 ZTEST_USER(test_fn, test_mbedtls_psa)
17 {
18 	uint8_t tmp[64];
19 
20 	zassert_equal(psa_crypto_init(), PSA_SUCCESS, "psa_crypto_init failed");
21 	zassert_equal(psa_generate_random(tmp, sizeof(tmp)), PSA_SUCCESS,
22 					"psa_generate_random failed");
23 
24 }
25 
26 ZTEST_SUITE(test_fn, NULL, NULL, NULL, NULL, NULL);
27