MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxCsslMemory_Clear.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------*/
2 /* Copyright 2021 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 
20 #ifndef MCUXCSSLMEMORY_CLEAR_H_
21 #define MCUXCSSLMEMORY_CLEAR_H_
22 
23 #include <stdint.h>
24 #include <stddef.h>
25 #include <mcuxCsslFlowProtection.h>
26 #include <mcuxCsslParamIntegrity.h>
27 
44 #define MCUXCSSLMEMORY_CLEAR_SUCCESS ((mcuxCsslMemory_ClearResult_t) 0xE1E1E1E1u)
45 
46 #define MCUXCSSLMEMORY_CLEAR_INVALID_PARAMETER ((mcuxCsslMemory_ClearResult_t) 0x69696969u)
47 
48 #define MCUXCSSLMEMORY_CLEAR_FAULT ((mcuxCsslMemory_ClearResult_t) 0x96969696u)
49 
50 
62 typedef uint64_t mcuxCsslMemory_ClearResult_t;
63 
96 (
98  void * pDst,
99  size_t dst_size,
100  size_t cnt
101 );
102 
111 #endif /* MCUXCSSLMEMORY_CLEAR_H_ */
uint32_t mcuxCsslParamIntegrity_Checksum_t
Type of a parameter checksum.
Definition: mcuxCsslParamIntegrity.h:71
uint64_t mcuxCsslMemory_ClearResult_t
return type for CSSL Memory clear
Definition: mcuxCsslMemory_Clear.h:62
mcuxCsslMemory_ClearResult_t mcuxCsslMemory_Clear(mcuxCsslParamIntegrity_Checksum_t chk, void *pDst, size_t dst_size, size_t cnt)
Clear cnt bytes of data at pDst.
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
Top-level include file for the parameter integrity protection mechanism.