MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClCore_Examples.h
1
/*--------------------------------------------------------------------------*/
2
/* Copyright 2020-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
14
#ifndef MCUXCLCORE_EXAMPLES_H_
15
#define MCUXCLCORE_EXAMPLES_H_
16
17
#include <mcuxClCore_Platform.h>
18
#include <
mcuxCsslFlowProtection.h
>
19
24
// TODO CLNS-3599: #define MCUXCLEXAMPLE_FUNCTION(_name) uint32_t _name(void)
25
#define MCUXCLEXAMPLE_FUNCTION(_name) bool _name(void)
26
31
#define MCUXCLEXAMPLE_OK true // TODO CLNS-3599: 0xC001C0DEu
32
37
#define MCUXCLEXAMPLE_ERROR false // TODO CLNS-3599: 0xEEEEEEEEu
38
43
#define MCUXCLEXAMPLE_FAILURE false // TODO CLNS-3599: 0xFFFFFFFFu
44
48
#define MCUXCLEXAMPLE_MAX( x, y ) ( ( x ) > ( y ) ? ( x ) : ( y ) )
49
53
MCUX_CSSL_FP_FUNCTION_DEF
(mcuxClCore_assertEqual)
54
static
inline
bool
mcuxClCore_assertEqual(
const
uint8_t *
const
x,
const
uint8_t *
const
y, uint32_t length)
55
{
56
for
(uint32_t i = 0; i < length; ++i)
57
{
58
if
(x[i] != y[i])
59
{
60
return
false
;
61
}
62
}
63
64
return
true
;
65
}
66
67
#endif
/* MCUXCLCORE_EXAMPLES_H_ */
MCUX_CSSL_FP_FUNCTION_DEF
#define MCUX_CSSL_FP_FUNCTION_DEF(...)
Definition of a flow protected function.
Definition:
mcuxCsslFlowProtection.h:159
mcuxCsslFlowProtection.h
Provides the API for the CSSL flow protection mechanism.
mcuxClCore_Examples.h
Generated by
1.8.15