MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClHash_Functions.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2020-2026 NXP */
3/* */
4/* NXP Confidential and Proprietary. This software is owned or controlled */
5/* by NXP and may only be used strictly in accordance with the applicable */
6/* license terms. By expressly accepting such terms or by downloading, */
7/* installing, activating and/or otherwise using the software, you are */
8/* agreeing that you have read, and that you agree to comply with and are */
9/* bound by, such license terms. If you do not agree to be bound by the */
10/* applicable license terms, then you may not retain, install, activate or */
11/* otherwise use the software. */
12/*--------------------------------------------------------------------------*/
13
16
17#ifndef MCUXCLHASH_FUNCTIONS_H_
18#define MCUXCLHASH_FUNCTIONS_H_
19
20#include <mcuxClConfig.h> // Exported features flags header
21#include <mcuxClSession_Types.h>
22#include <mcuxClHash_Types.h>
25#include <mcuxClBuffer.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
37
38/**********************************************************************/
39/* ONE-SHOT */
40/**********************************************************************/
41
78 mcuxClHash_Algo_t algorithm,
80 uint32_t inSize,
81 mcuxCl_Buffer_t pOut,
82 uint32_t *const pOutSize
83); /* oneshot compute */
84
85
86
87/**********************************************************************/
88/* MULTIPART */
89/**********************************************************************/
90
111 mcuxClHash_Context_t pContext,
112 mcuxClHash_Algo_t algorithm
113); /* init */
114
140 mcuxClHash_Context_t pContext,
142 uint32_t inSize
143); /* update */
144
171 mcuxClHash_Context_t pContext,
172 mcuxCl_Buffer_t pOut,
173 uint32_t *const pOutSize
174); /* finalize compute */
175
176 /* mcuxClHash_Functions */
180
181#ifdef __cplusplus
182} /* extern "C" */
183#endif
184
185#endif /* MCUXCLHASH_FUNCTIONS_H_ */
186
Top-level include file for the mcuxClBuffer component.
Definition of function identifiers for the flow protection mechanism.
Type definitions for the mcuxClHash component.
Type definitions for the mcuxClSession component.
Provides the API for the CSSL flow protection mechanism.
const uint8_t * mcuxCl_InputBuffer_t
Input buffer type.
Definition mcuxClBuffer_Pointer.h:38
uint8_t * mcuxCl_Buffer_t
Input/output buffer type.
Definition mcuxClBuffer_Pointer.h:47
mcuxClHash_Status_t mcuxClHash_process(mcuxClSession_Handle_t session, mcuxClHash_Context_t pContext, mcuxCl_InputBuffer_t pIn, uint32_t inSize)
Multi-part Hash processing function.
mcuxClHash_Status_t mcuxClHash_init(mcuxClSession_Handle_t session, mcuxClHash_Context_t pContext, mcuxClHash_Algo_t algorithm)
Multi-part Hash initialization function.
mcuxClHash_Status_t mcuxClHash_compute(mcuxClSession_Handle_t session, mcuxClHash_Algo_t algorithm, mcuxCl_InputBuffer_t pIn, uint32_t inSize, mcuxCl_Buffer_t pOut, uint32_t *const pOutSize)
One-shot Hash computation function.
mcuxClHash_Status_t mcuxClHash_finish(mcuxClSession_Handle_t session, mcuxClHash_Context_t pContext, mcuxCl_Buffer_t pOut, uint32_t *const pOutSize)
Multi-part Hash computation finalization function.
const mcuxClHash_AlgorithmDescriptor_t *const mcuxClHash_Algo_t
Hash mode/algorithm type.
Definition mcuxClHash_Types.h:50
mcuxClHash_ContextDescriptor_t * mcuxClHash_Context_t
Hash Context type.
Definition mcuxClHash_Types.h:72
uint32_t mcuxClHash_Status_t
Hash Status type.
Definition mcuxClHash_Types.h:80
mcuxClSession_Descriptor_t *const mcuxClSession_Handle_t
Type for mcuxClSession Handle.
Definition mcuxClSession_Types.h:98
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition mcuxCsslFlowProtection.h:166
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:138