MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClMemory_Set.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/* Copyright 2020-2021, 2023 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
26#ifndef MCUXCLMEMORY_SET_H_
27#define MCUXCLMEMORY_SET_H_
28
29#include <mcuxClConfig.h> // Exported features flags header
30
31#include <mcuxClMemory_Types.h>
32#include <mcuxCsslAnalysis.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38/**********************************************
39 * FUNCTIONS
40 **********************************************/
54MCUX_CSSL_FP_PROTECTED_TYPE(void) mcuxClMemory_set (uint8_t *pDst, uint8_t val, size_t length, size_t bufLength);
55
56/**********************************************
57 * MACROS
58 **********************************************/
59
61#define MCUXCLMEMORY_FP_MEMORY_SET(pTarget, val, byteLen) \
62 MCUX_CSSL_FP_FUNCTION_CALL_VOID(mcuxClMemory_set((uint8_t *) (pTarget), val, byteLen, byteLen))
63
65#define MCUXCLMEMORY_FP_MEMORY_SET_WITH_BUFF(pTarget, val, byteLen, buffLen) \
66 MCUX_CSSL_FP_FUNCTION_CALL_VOID(mcuxClMemory_set((uint8_t *) (pTarget), val, byteLen, buffLen))
67
68
69#ifdef __cplusplus
70} /* extern "C" */
71#endif
72
73#endif /* MCUXCLMEMORY_SET_H_ */
74
Memory type header.
void mcuxClMemory_set(uint8_t *pDst, uint8_t val, size_t length, size_t bufLength)
Sets all bytes of a memory buffer to a specified value.
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition mcuxCsslFlowProtection.h:125
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition mcuxCsslFlowProtection.h:81