MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClAes_Constants.h
1 /*--------------------------------------------------------------------------*/
2 /* Copyright 2022 NXP */
3 /* */
4 /* NXP Confidential. This software is owned or controlled by NXP and may */
5 /* only be used strictly in accordance with the applicable license terms. */
6 /* By expressly accepting such terms or by downloading, installing, */
7 /* activating and/or otherwise using the software, you are agreeing that */
8 /* you have read, and that you agree to comply with and are bound by, such */
9 /* license terms. If you do not agree to be bound by the applicable license */
10 /* terms, then you may not retain, install, activate or otherwise use the */
11 /* software. */
12 /*--------------------------------------------------------------------------*/
13 
14 #ifndef MCUXCLAES_CONSTANTS_H_
15 #define MCUXCLAES_CONSTANTS_H_
16 
17 #include <mcuxClConfig.h> // Exported features flags header
18 
19 #include <mcuxClKey_Constants.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
32 /* Block size */
33 #define MCUXCLAES_BLOCK_SIZE (16u)
34 #define MCUXCLAES_BLOCK_SIZE_IN_WORDS (MCUXCLAES_BLOCK_SIZE / sizeof(uint32_t))
35 
36 /* Key sizes */
37 #define MCUXCLAES_AES128_KEY_SIZE (MCUXCLKEY_SIZE_128)
38 #define MCUXCLAES_AES128_KEY_SIZE_IN_WORDS (MCUXCLKEY_SIZE_128_IN_WORDS)
39 #define MCUXCLAES_AES192_KEY_SIZE (MCUXCLKEY_SIZE_192)
40 #define MCUXCLAES_AES192_KEY_SIZE_IN_WORDS (MCUXCLKEY_SIZE_192_IN_WORDS)
41 #define MCUXCLAES_AES256_KEY_SIZE (MCUXCLKEY_SIZE_256)
42 #define MCUXCLAES_AES256_KEY_SIZE_IN_WORDS (MCUXCLKEY_SIZE_256_IN_WORDS)
43 
44  /* mcuxClAes_Constants */
47 
48 #ifdef __cplusplus
49 } /* extern "C" */
50 #endif
51 
52 #endif /* MCUXCLAES_CONSTANTS_H_ */
Constants for the mcuxClKey component.