1 /*
2  * Copyright (c) 2022 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/kernel.h>
8 #include <zephyr/fff.h>
9 #include <psa/crypto.h>
10 
11 /* List of fakes used by this unit tester */
12 #define AES_FFF_FAKES_LIST(FAKE)               \
13 		FAKE(psa_crypto_init)          \
14 		FAKE(psa_generate_random)      \
15 		FAKE(psa_import_key)           \
16 		FAKE(psa_cipher_encrypt)       \
17 		FAKE(psa_destroy_key)
18 
19 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_crypto_init);
20 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_generate_random, uint8_t *, size_t);
21 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_import_key, const psa_key_attributes_t *, const uint8_t *,
22 			size_t, mbedtls_svc_key_id_t *);
23 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_cipher_encrypt, mbedtls_svc_key_id_t, psa_algorithm_t,
24 			const uint8_t *, size_t, uint8_t *, size_t, size_t *);
25 DECLARE_FAKE_VALUE_FUNC(psa_status_t, psa_destroy_key, mbedtls_svc_key_id_t);
26