MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClCipherModes_MemoryConsumption.h
1/*--------------------------------------------------------------------------*/
2/* Copyright 2021-2023 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
19#ifndef MCUXCLCIPHER_MEMORYCONSUMPTION_H_
20#define MCUXCLCIPHER_MEMORYCONSUMPTION_H_
21
22#include <mcuxClCore_Macros.h>
23
24/* Workarea sizes */
25#define MCUXCLCIPHER_AES_CRYPT_CPU_WA_BUFFER_SIZE (48u)
26#define MCUXCLCIPHER_AES_CRYPT_CPU_WA_BUFFER_SIZE_IN_WORDS MCUXCLCORE_NUM_OF_CPUWORDS_FLOOR(MCUXCLCIPHER_AES_CRYPT_CPU_WA_BUFFER_SIZE)
27
28#define MCUXCLCIPHER_AES_INIT_CPU_WA_BUFFER_SIZE (4u)
29#define MCUXCLCIPHER_AES_PROCESS_CPU_WA_BUFFER_SIZE (4u)
30#define MCUXCLCIPHER_AES_FINISH_CPU_WA_BUFFER_SIZE (4u)
31#define MCUXCLCIPHER_AES_INIT_CPU_WA_BUFFER_SIZE_IN_WORDS MCUXCLCORE_NUM_OF_CPUWORDS_FLOOR(MCUXCLCIPHER_AES_INIT_CPU_WA_BUFFER_SIZE)
32#define MCUXCLCIPHER_AES_PROCESS_CPU_WA_BUFFER_SIZE_IN_WORDS MCUXCLCORE_NUM_OF_CPUWORDS_FLOOR(MCUXCLCIPHER_AES_PROCESS_CPU_WA_BUFFER_SIZE)
33#define MCUXCLCIPHER_AES_FINISH_CPU_WA_BUFFER_SIZE_IN_WORDS MCUXCLCORE_NUM_OF_CPUWORDS_FLOOR(MCUXCLCIPHER_AES_FINISH_CPU_WA_BUFFER_SIZE)
34
35#define MCUXCLCIPHER_MAX_AES_CPU_WA_BUFFER_SIZE (MCUXCLCIPHER_AES_CRYPT_CPU_WA_BUFFER_SIZE)
36#define MCUXCLCIPHER_MAX_AES_CPU_WA_BUFFER_SIZE_IN_WORDS (MCUXCLCIPHER_AES_CRYPT_CPU_WA_BUFFER_SIZE_IN_WORDS)
37
38/* Context sizes */
39#define MCUXCLCIPHER_AES_CONTEXT_SIZE (48u)
40#define MCUXCLCIPHER_AES_CONTEXT_SIZE_IN_WORDS MCUXCLCORE_NUM_OF_CPUWORDS_FLOOR(MCUXCLCIPHER_AES_CONTEXT_SIZE)
41
42
43#endif /* MCUXCLCIPHER_MEMORYCONSUMPTION_H_ */
Definition of macros.