/* * Copyright (c) 2001-2022, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef MBEDTLS_CCM_ALT_H #define MBEDTLS_CCM_ALT_H #include "mbedtls/build_info.h" #include #include #include "mbedtls/cipher.h" #define MBEDTLS_ERR_CCM_BAD_INPUT -0x000D /**< Bad input parameters to function. */ #define MBEDTLS_ERR_CCM_AUTH_FAILED -0x000F /**< Authenticated decryption failed. */ /* hide internal implementation of the struct. Allocate enough space for it.*/ #define MBEDTLS_CCM_CONTEXT_SIZE_IN_WORDS 264 #ifdef __cplusplus extern "C" { #endif /** * \brief The CCM context-type definition. The CCM context is passed * to the APIs called. */ typedef struct { uint32_t buf[MBEDTLS_CCM_CONTEXT_SIZE_IN_WORDS]; } mbedtls_ccm_context; #ifdef __cplusplus } #endif #endif /* MBEDTLS_CCM_ALT_H */