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 "mocks/aes.h"
9 #include "mocks/aes_expects.h"
10 
expect_single_call_tc_aes_encrypt(uint8_t * out)11 void expect_single_call_tc_aes_encrypt(uint8_t *out)
12 {
13 	const char *func_name = "tc_aes_encrypt";
14 
15 	zassert_equal(tc_aes_encrypt_fake.call_count, 1, "'%s()' was called more than once",
16 		      func_name);
17 
18 	zassert_equal_ptr(tc_aes_encrypt_fake.arg0_val, out,
19 		      "'%s()' was called with incorrect '%s' value", func_name, "out");
20 	zassert_not_null(tc_aes_encrypt_fake.arg1_val,
21 			 "'%s()' was called with incorrect '%s' value", func_name, "in");
22 	zassert_not_null(tc_aes_encrypt_fake.arg2_val,
23 			 "'%s()' was called with incorrect '%s' value", func_name, "s");
24 }
25