MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClMac_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
18
19#ifndef MCUXCLMAC_FUNCTIONS_H_
20#define MCUXCLMAC_FUNCTIONS_H_
21
22#include <mcuxClConfig.h> // Exported features flags header
23#include <mcuxClSession_Types.h>
24#include <mcuxClKey_Types.h>
25#include <mcuxClMac_Types.h>
26#include <mcuxClCore_Platform.h>
27#include <mcuxClBuffer.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
39
40/****************************************************************************/
41/* ONESHOT */
42/****************************************************************************/
43
50
121 mcuxClMac_Mode_t mode,
123 uint32_t inLength,
124 mcuxCl_Buffer_t pMac,
125 uint32_t * const pMacLength
126);
127 /* mcuxClMac_OneShot */
131
132
133/****************************************************************************/
134/* MULTIPART */
135/****************************************************************************/
136
143
193 mcuxClMac_Context_t * const pContext,
196); /* init */
197
257 mcuxClMac_Context_t * const pContext,
259 uint32_t inLength
260); /* update */
261
302 mcuxClMac_Context_t * const pContext,
303 mcuxCl_Buffer_t pMac,
304 uint32_t * const pMacLength
305); /* finalize compute */
306 /* mcuxClMac_MultiPart */
310 /* mcuxClMac_Functions */
314
315#ifdef __cplusplus
316} /* extern "C" */
317#endif
318
319#endif /* MCUXCLMAC_FUNCTIONS_H_ */
Top-level include file for the mcuxClBuffer component.
Type definitions for the mcuxClKey component.
Type definitions for the mcuxClMac component.
Type definitions for the mcuxClSession component.
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
mcuxClKey_Descriptor_t *const mcuxClKey_Handle_t
Key handle type.
Definition mcuxClKey_Types.h:91
mcuxClMac_Status_t mcuxClMac_compute(mcuxClSession_Handle_t session, mcuxClKey_Handle_t key, mcuxClMac_Mode_t mode, mcuxCl_InputBuffer_t pIn, uint32_t inLength, mcuxCl_Buffer_t pMac, uint32_t *const pMacLength)
One-shot message authentication code (MAC) computation function.
mcuxClMac_Status_t mcuxClMac_process(mcuxClSession_Handle_t session, mcuxClMac_Context_t *const pContext, mcuxCl_InputBuffer_t pIn, uint32_t inLength)
Data processing for a multipart MAC computation.
mcuxClMac_Status_t mcuxClMac_init(mcuxClSession_Handle_t session, mcuxClMac_Context_t *const pContext, mcuxClKey_Handle_t key, mcuxClMac_Mode_t mode)
Initialization for a multipart MAC computation.
mcuxClMac_Status_t mcuxClMac_finish(mcuxClSession_Handle_t session, mcuxClMac_Context_t *const pContext, mcuxCl_Buffer_t pMac, uint32_t *const pMacLength)
Finalize a MAC generation for a multipart MAC computation.
const mcuxClMac_ModeDescriptor_t *const mcuxClMac_Mode_t
MAC mode/algorithm type.
Definition mcuxClMac_Types.h:67
uint32_t mcuxClMac_Status_t
Type for Mac component error codes.
Definition mcuxClMac_Types.h:44
struct mcuxClMac_Context mcuxClMac_Context_t
Mac context type.
Definition mcuxClMac_Types.h:98
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