MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClOsccaCipherModes_MemoryConsumption.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2022-2023 NXP */
3/* */
4/* NXP Proprietary. 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 */
10/* license terms, then you may not retain, install, activate or otherwise */
11/* use the software. */
12/*--------------------------------------------------------------------------*/
13
17#ifndef MCUXCLOSCCACIPHERMODES_MEMORYCONSUMPTION_H_
18#define MCUXCLOSCCACIPHERMODES_MEMORYCONSUMPTION_H_
19
20/* Workarea sizes */
21#ifdef MCUXCL_FEATURE_CIPHERMODES_SM4
22
23#define MCUXCLOSCCACIPHER_SM4_CRYPT_CPU_WA_BUFFER_SIZE (584u)
24#define MCUXCLOSCCACIPHER_SM4_CRYPT_CPU_WA_BUFFER_SIZE_IN_WORDS (MCUXCLOSCCACIPHER_SM4_CRYPT_CPU_WA_BUFFER_SIZE / sizeof(uint32_t))
25
26#define MCUXCLOSCCACIPHER_MAX_SM4_CPU_WA_BUFFER_SIZE (MCUXCLOSCCACIPHER_SM4_CRYPT_CPU_WA_BUFFER_SIZE)
27#define MCUXCLOSCCACIPHER_MAX_SM4_CPU_WA_BUFFER_SIZE_IN_WORDS (MCUXCLOSCCACIPHER_SM4_CRYPT_CPU_WA_BUFFER_SIZE_IN_WORDS)
28
29
30
31#define MCUXCLOSCCACIPHER_SM4_INIT_CPU_WA_BUFFER_SIZE (4u)
32#define MCUXCLOSCCACIPHER_SM4_PROCESS_CPU_WA_BUFFER_SIZE (4u)
33#define MCUXCLOSCCACIPHER_SM4_FINISH_CPU_WA_BUFFER_SIZE (4u)
34#define MCUXCLOSCCACIPHER_SM4_INIT_CPU_WA_BUFFER_SIZE_IN_WORDS (MCUXCLOSCCACIPHER_SM4_INIT_CPU_WA_BUFFER_SIZE / sizeof(uint32_t))
35#define MCUXCLOSCCACIPHER_SM4_PROCESS_CPU_WA_BUFFER_SIZE_IN_WORDS (MCUXCLOSCCACIPHER_SM4_PROCESS_CPU_WA_BUFFER_SIZE / sizeof(uint32_t))
36#define MCUXCLOSCCACIPHER_SM4_FINISH_CPU_WA_BUFFER_SIZE_IN_WORDS (MCUXCLOSCCACIPHER_SM4_FINISH_CPU_WA_BUFFER_SIZE / sizeof(uint32_t))
37
38/* Context sizes */
39#define MCUXCLOSCCACIPHER_SM4_CONTEXT_SIZE (584u)
40#define MCUXCLOSCCACIPHER_SM4_CONTEXT_SIZE_IN_WORDS (MCUXCLOSCCACIPHER_SM4_CONTEXT_SIZE / sizeof(uint32_t))
41#endif /* MCUXCL_FEATURE_CIPHERMODES_SM4 */
42
43#endif /* MCUXCLOSCCACIPHERMODES_MEMORYCONSUMPTION_H_ */