1 /* 2 * Copyright (c) 2001-2022, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef MBEDTLS_CMAC_ALT_H 8 #define MBEDTLS_CMAC_ALT_H 9 10 #include "mbedtls/build_info.h" 11 12 #include <stddef.h> 13 #include <stdint.h> 14 15 16 /* hide internal implementation of the struct. Allocate enough space for it.*/ 17 #define MBEDTLS_CMAC_CONTEXT_SIZE_IN_WORDS 33 18 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 /** 25 * \brief CMAC cipher context structure 26 */ 27 struct mbedtls_cmac_context_t{ 28 /*! Internal buffer */ 29 uint32_t buf[MBEDTLS_CMAC_CONTEXT_SIZE_IN_WORDS]; 30 }; 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif /* MBEDTLS_CMAC_ALT_H */ 37