MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
mcuxClCipher_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 MCUXCLCIPHER_FUNCTIONS_H_
18#define MCUXCLCIPHER_FUNCTIONS_H_
19
20#include <mcuxClConfig.h> // Exported features flags header
21#include <mcuxClSession_Types.h>
22#include <mcuxClKey_Types.h>
23#include <mcuxClCipher_Types.h>
24#include <mcuxClCore_Platform.h>
25#include <mcuxClBuffer.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31
38
39
40
115 uint32_t ivLength,
117 uint32_t inLength,
118 mcuxCl_Buffer_t pOut,
119 uint32_t * const pOutLength
120);
121
196 uint32_t ivLength,
198 uint32_t inLength,
199 mcuxCl_Buffer_t pOut,
200 uint32_t * const pOutLength
201);
202
203
204
245 mcuxClCipher_Context_t * const pContext,
249 uint32_t ivLength
250); /* init encrypt */
251
292 mcuxClCipher_Context_t * const pContext,
296 uint32_t ivLength
297); /* init decrypt */
298
354 mcuxClCipher_Context_t * const pContext,
356 uint32_t inLength,
357 mcuxCl_Buffer_t pOut,
358 uint32_t * const pOutLength
359); /* update */
360
393 mcuxClCipher_Context_t * const pContext,
394 mcuxCl_Buffer_t pOut,
395 uint32_t * const pOutLength
396); /* finalize */
397
398
399
401
402
403#ifdef __cplusplus
404} /* extern "C" */
405#endif
406
407#endif /* MCUXCLCIPHER_FUNCTIONS_H_ */
Top-level include file for the mcuxClBuffer component.
Type definitions for the mcuxClCipher component.
Type definitions for the mcuxClKey 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
mcuxClCipher_Status_t mcuxClCipher_process(mcuxClSession_Handle_t session, mcuxClCipher_Context_t *const pContext, mcuxCl_InputBuffer_t pIn, uint32_t inLength, mcuxCl_Buffer_t pOut, uint32_t *const pOutLength)
Multi-part encryption/decryption processing function.
mcuxClCipher_Status_t mcuxClCipher_encrypt(mcuxClSession_Handle_t session, mcuxClKey_Handle_t key, mcuxClCipher_Mode_t mode, mcuxCl_InputBuffer_t pIv, uint32_t ivLength, mcuxCl_InputBuffer_t pIn, uint32_t inLength, mcuxCl_Buffer_t pOut, uint32_t *const pOutLength)
One-shot encryption function.
mcuxClCipher_Status_t mcuxClCipher_init_encrypt(mcuxClSession_Handle_t session, mcuxClCipher_Context_t *const pContext, mcuxClKey_Handle_t key, mcuxClCipher_Mode_t mode, mcuxCl_InputBuffer_t pIv, uint32_t ivLength)
Multi-part encryption initialization function.
mcuxClCipher_Status_t mcuxClCipher_decrypt(mcuxClSession_Handle_t session, mcuxClKey_Handle_t key, mcuxClCipher_Mode_t mode, mcuxCl_InputBuffer_t pIv, uint32_t ivLength, mcuxCl_InputBuffer_t pIn, uint32_t inLength, mcuxCl_Buffer_t pOut, uint32_t *const pOutLength)
One-shot decryption function.
mcuxClCipher_Status_t mcuxClCipher_finish(mcuxClSession_Handle_t session, mcuxClCipher_Context_t *const pContext, mcuxCl_Buffer_t pOut, uint32_t *const pOutLength)
Multi-part encryption/decryption finalization function.
mcuxClCipher_Status_t mcuxClCipher_init_decrypt(mcuxClSession_Handle_t session, mcuxClCipher_Context_t *const pContext, mcuxClKey_Handle_t key, mcuxClCipher_Mode_t mode, mcuxCl_InputBuffer_t pIv, uint32_t ivLength)
Multi-part decryption initialization function.
struct mcuxClCipher_Context mcuxClCipher_Context_t
Cipher context type.
Definition mcuxClCipher_Types.h:100
const mcuxClCipher_ModeDescriptor_t *const mcuxClCipher_Mode_t
Cipher mode/algorithm type.
Definition mcuxClCipher_Types.h:61
uint32_t mcuxClCipher_Status_t
Cipher status code.
Definition mcuxClCipher_Types.h:108
mcuxClKey_Descriptor_t *const mcuxClKey_Handle_t
Key handle type.
Definition mcuxClKey_Types.h:91
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