MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
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
22extern "C" {
23#endif
24
32/* Error codes */
33#define MCUXCLAES_STATUS_ERROR ((mcuxClAes_Status_t) 0x0FF95330u)
34#define MCUXCLAES_STATUS_OK ((mcuxClAes_Status_t) 0x0FF92E03u)
35
36/* Block size */
37#define MCUXCLAES_BLOCK_SIZE (16u)
38#define MCUXCLAES_BLOCK_SIZE_IN_WORDS (MCUXCLAES_BLOCK_SIZE / sizeof(uint32_t))
39
40/* Key sizes */
41#define MCUXCLAES_AES128_KEY_SIZE (MCUXCLKEY_SIZE_128)
42#define MCUXCLAES_AES128_KEY_SIZE_IN_WORDS (MCUXCLKEY_SIZE_128_IN_WORDS)
43#define MCUXCLAES_AES192_KEY_SIZE (MCUXCLKEY_SIZE_192)
44#define MCUXCLAES_AES192_KEY_SIZE_IN_WORDS (MCUXCLKEY_SIZE_192_IN_WORDS)
45#define MCUXCLAES_AES256_KEY_SIZE (MCUXCLKEY_SIZE_256)
46#define MCUXCLAES_AES256_KEY_SIZE_IN_WORDS (MCUXCLKEY_SIZE_256_IN_WORDS)
47 /* mcuxClAes_Constants */
51
52#ifdef __cplusplus
53} /* extern "C" */
54#endif
55
56#endif /* MCUXCLAES_CONSTANTS_H_ */
Constants for the mcuxClKey component.