MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClHash_MemoryConsumption.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------*/
2 /* Copyright 2020-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 
17 #ifndef MCUXCLHASH_MEMORYCONSUMPTION_H_
18 #define MCUXCLHASH_MEMORYCONSUMPTION_H_
19 
20 #define MCUXCLHASH_COMPUTE_CPU_WA_BUFFER_SIZE_MAX (192u)
21 #define MCUXCLHASH_COMPARE_CPU_WA_BUFFER_SIZE_MAX MCUXCLHASH_COMPUTE_CPU_WA_BUFFER_SIZE_MAX
22 #define MCUXCLHASH_INIT_CPU_WA_BUFFER_SIZE (4u)
23 #define MCUXCLHASH_PROCESS_CPU_WA_BUFFER_SIZE_MAX (4u)
24 #define MCUXCLHASH_FINISH_CPU_WA_BUFFER_SIZE_MAX (192u)
25 #define MCUXCLHASH_VERIFY_CPU_WA_BUFFER_SIZE_MAX MCUXCLHASH_FINISH_CPU_WA_BUFFER_SIZE_MAX
26 
27 #define MCUXCLHASH_MAX_CPU_WA_BUFFER_SIZE (192u)
28 
29 
30 /****************************************************************************/
31 /* Definitions of context sizes for the mcuxClHash multi-part functions. */
32 /****************************************************************************/
33 
34 #define MCUXCLHASH_CONTEXT_SIZE (392u)
35 #define MCUXCLHASH_CONTEXT_SIZE_IN_WORDS (392u / sizeof(uint32_t))
36 
37 
38 #endif /* MCUXCLHASH_MEMORYCONSUMPTION_H_ */