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 
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 
91  mcuxClSession_Handle_t session,
92  mcuxClHash_Context_t * context,
93  const mcuxClHash_Algo_t * algo
94 );
95 
114  mcuxClSession_Handle_t session,
115  mcuxClHash_Context_t * context,
116  const uint8_t * const in,
117  uint32_t inSize
118 );
119 
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_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_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_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition: mcuxClSession_Types.h:110
Definition: mcuxClHash_Types.h:147
uint64_t mcuxClHash_Status_Protected_t
Hash Protected Status type.
Definition: mcuxClHash_Types.h:56
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_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.
Type definitions for the mcuxClSession component.
Type definitions for the mcuxClHash component.
Provides the API for the CSSL flow protection mechanism.
#define MCUX_CSSL_FP_FUNCTION_DECL(id)
Declaration of a flow protected function.
Definition: mcuxCsslFlowProtection.h:119
Definition: mcuxClHash_Types.h:201