MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClAes_Constants.h
1/*--------------------------------------------------------------------------*/
2/* Copyright 2022, 2024-2025 NXP */
3/* */
4/* NXP Confidential and Proprietary. This software is owned or controlled */
5/* by NXP and may only be used strictly in accordance with the applicable */
6/* license terms. By expressly accepting such terms or by downloading, */
7/* installing, activating and/or otherwise using the software, you are */
8/* agreeing that you have read, and that you agree to comply with and are */
9/* bound by, such license terms. If you do not agree to be bound by the */
10/* applicable license terms, then you may not retain, install, activate or */
11/* otherwise use the 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
31
32/* Status code */
33#define MCUXCLAES_STATUS_OK ((mcuxClAes_Status_t) 0x0FF92E03u)
34
35/* Block size */
36#define MCUXCLAES_BLOCK_SIZE (16u)
37#define MCUXCLAES_BLOCK_SIZE_IN_WORDS (MCUXCLAES_BLOCK_SIZE / sizeof(uint32_t))
38
39/* Key sizes */
40#define MCUXCLAES_AES128_KEY_SIZE (MCUXCLKEY_SIZE_128)
41#define MCUXCLAES_AES128_KEY_SIZE_IN_WORDS (MCUXCLKEY_SIZE_128_IN_WORDS)
42#define MCUXCLAES_AES192_KEY_SIZE (MCUXCLKEY_SIZE_192)
43#define MCUXCLAES_AES192_KEY_SIZE_IN_WORDS (MCUXCLKEY_SIZE_192_IN_WORDS)
44#define MCUXCLAES_AES256_KEY_SIZE (MCUXCLKEY_SIZE_256)
45#define MCUXCLAES_AES256_KEY_SIZE_IN_WORDS (MCUXCLKEY_SIZE_256_IN_WORDS)
46
47/* RFC3394 key wrap/unwrap Key container data sizes */
48#define MCUXCLAES_ENCODING_RFC3394_BLOCK_SIZE (8U)
49#define MCUXCLAES_ENCODING_RFC3394_AES128_KEY_SIZE (MCUXCLAES_AES128_KEY_SIZE + MCUXCLAES_ENCODING_RFC3394_BLOCK_SIZE)
50#define MCUXCLAES_ENCODING_RFC3394_AES128_KEY_SIZE_IN_WORDS (MCUXCLAES_ENCODING_RFC3394_AES128_KEY_SIZE / sizeof(uint32_t))
51#define MCUXCLAES_ENCODING_RFC3394_AES256_KEY_SIZE (MCUXCLAES_AES256_KEY_SIZE + MCUXCLAES_ENCODING_RFC3394_BLOCK_SIZE)
52#define MCUXCLAES_ENCODING_RFC3394_AES256_KEY_SIZE_IN_WORDS (MCUXCLAES_ENCODING_RFC3394_AES256_KEY_SIZE / sizeof(uint32_t))
53
54 /* mcuxClAes_Constants */
58
59#ifdef __cplusplus
60} /* extern "C" */
61#endif
62
63#endif /* MCUXCLAES_CONSTANTS_H_ */
Constants for the mcuxClKey component.