MCUX CLNS MCUX Crypto Library Normal Secure |

mcuxClHash_Functions.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------*/
2 /* Copyright 2020 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_FUNCTIONS_H_
18 #define MCUXCLHASH_FUNCTIONS_H_
19
20 #include <mcuxClSession_Types.h>
21 #include <mcuxClHash_Types.h>
22 #include <mcuxCsslFlowProtection.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
57 MCUX_CSSL_FP_FUNCTION_DECL(mcuxClHash_compute)
58 mcuxClHash_Status_Protected_t mcuxClHash_compute(
59 mcuxClSession_Handle_t session,
60 const mcuxClHash_Algo_t *algo,
61 const uint8_t *const in,
62 uint32_t inSize,
63 uint8_t *const hash,
64 uint8_t *const rtf
65 );
66
67
68
69 /**********************************************************************/
70 /* MULTIPART */
71 /**********************************************************************/
72
89 MCUX_CSSL_FP_FUNCTION_DECL(mcuxClHash_init)
90 mcuxClHash_Status_Protected_t mcuxClHash_init(
91 mcuxClSession_Handle_t session,
92 mcuxClHash_Context_t * context,
93 const mcuxClHash_Algo_t * algo
94 );
95
112 MCUX_CSSL_FP_FUNCTION_DECL(mcuxClHash_update)
113 mcuxClHash_Status_Protected_t mcuxClHash_update(
114 mcuxClSession_Handle_t session,
115 mcuxClHash_Context_t * context,
116 const uint8_t * const in,
117 uint32_t inSize
118 );
119
136 MCUX_CSSL_FP_FUNCTION_DECL(mcuxClHash_finish)
137 mcuxClHash_Status_Protected_t mcuxClHash_finish(
138 mcuxClSession_Handle_t session,
139 mcuxClHash_Context_t * context,
140 uint8_t * const hash,
141 uint8_t * const rtf
142 );
143
144 /* mcuxClHash_Functions */
148
149 #ifdef __cplusplus
150 } /* extern "C" */
151 #endif
152
153 #endif /* MCUXCLHASH_FUNCTIONS_H_ */
154
mcuxClHash_update
mcuxClHash_Status_Protected_t mcuxClHash_update(mcuxClSession_Handle_t session, mcuxClHash_Context_t *context, const uint8_t *const in, uint32_t inSize)
Adds a chunk of data to an ongoing hash computation.
mcuxClHash_compute
mcuxClHash_Status_Protected_t mcuxClHash_compute(mcuxClSession_Handle_t session, const mcuxClHash_Algo_t *algo, const uint8_t *const in, uint32_t inSize, uint8_t *const hash, uint8_t *const rtf)
One-shot hash computation.
mcuxClSession_Handle_t
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition: mcuxClSession_Types.h:110
mcuxClHash_Context
Definition: mcuxClHash_Types.h:147
mcuxClHash_Status_Protected_t
uint64_t mcuxClHash_Status_Protected_t
Hash Protected Status type.
Definition: mcuxClHash_Types.h:56
mcuxClHash_init
mcuxClHash_Status_Protected_t mcuxClHash_init(mcuxClSession_Handle_t session, mcuxClHash_Context_t *context, const mcuxClHash_Algo_t *algo)
Initializes the context for a new hash computation.
mcuxClHash_finish
mcuxClHash_Status_Protected_t mcuxClHash_finish(mcuxClSession_Handle_t session, mcuxClHash_Context_t *context, uint8_t *const hash, uint8_t *const rtf)
Finishes a hash computation.
mcuxClSession_Types.h
Type definitions for the mcuxClSession component.
mcuxClHash_Types.h
Type definitions for the mcuxClHash component.
mcuxCsslFlowProtection.h
Provides the API for the CSSL flow protection mechanism.
MCUX_CSSL_FP_FUNCTION_DECL
#define MCUX_CSSL_FP_FUNCTION_DECL(id)
Declaration of a flow protected function.
Definition: mcuxCsslFlowProtection.h:119
mcuxClHash_Algo
Definition: mcuxClHash_Types.h:201