Change script for apply upstream code
[platform/upstream/connectedhomeip.git] / third_party / openthread / repo / third_party / NordicSemiconductor / libraries / nrf_security / include / mbedtls / cmac_alt.h
1 /*
2  * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause OR Arm’s non-OSI source license
5  */
6
7 #ifndef MBEDTLS_CMAC_ALT_H
8 #define MBEDTLS_CMAC_ALT_H
9
10 #if defined(MBEDTLS_CONFIG_FILE)
11 #include MBEDTLS_CONFIG_FILE
12 #endif
13
14
15
16 #include <stddef.h>
17 #include <stdint.h>
18
19 #if defined(MBEDTLS_CMAC_ALT)
20
21 /* hide internal implementation of the struct. Allocate enough space for it.*/
22 #define MBEDTLS_CMAC_CONTEXT_SIZE_IN_WORDS          33
23
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 /**
30  * \brief          CMAC cipher context structure
31  */
32 struct mbedtls_cmac_context_t{
33     /*! Internal buffer */
34     uint32_t buf[MBEDTLS_CMAC_CONTEXT_SIZE_IN_WORDS];
35 };
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif  /* MBEDTLS_CMAC_ALT */
42
43 #endif /* MBEDTLS_CMAC_ALT_H */