1 /* 2 * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /*! 8 @addtogroup cc_aes_defs_proj 9 @{ 10 */ 11 12 /*! 13 @file 14 @brief This file contains project definitions that are used for CryptoCell 15 AES APIs. 16 */ 17 18 #ifndef CC_AES_DEFS_PROJ_H 19 #define CC_AES_DEFS_PROJ_H 20 21 #include "cc_pal_types.h" 22 23 24 #ifdef __cplusplus 25 extern "C" 26 { 27 #endif 28 29 /************************ Defines ******************************/ 30 31 /*! The size of the context prototype of the user in words. 32 See ::CCAesUserContext_t.*/ 33 #define CC_AES_USER_CTX_SIZE_IN_WORDS (4+8+8+4) 34 35 /*! The maximal size of the AES key in words. */ 36 #define CC_AES_KEY_MAX_SIZE_IN_WORDS 8 37 /*! The maximal size of the AES key in bytes. */ 38 #define CC_AES_KEY_MAX_SIZE_IN_BYTES (CC_AES_KEY_MAX_SIZE_IN_WORDS * sizeof(uint32_t)) 39 40 41 #ifdef __cplusplus 42 } 43 #endif 44 45 46 /*! 47 @} 48 */ 49 50 #endif /* #ifndef CC_AES_DEFS_PROJ_H */ 51 52