MCUX CLNS MCUX Crypto Library Normal Secure |

mcuxCsslMemory_Compare.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------*/
2 /* Copyright 2020-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
19 #ifndef MCUXCSSLMEMORY_COMPARE_H
20 #define MCUXCSSLMEMORY_COMPARE_H
21
22 #include <stdint.h>
23 #include <stdlib.h>
24 #include <mcuxCsslParamIntegrity.h>
25 #include <mcuxCsslFlowProtection.h>
26
43 #define MCUXCSSLMEMORY_COMPARE_EQUAL (0xE1E1E1E1u)
44
45 #define MCUXCSSLMEMORY_COMPARE_NOT_EQUAL (0x1E1E1E1Eu)
46
47 #define MCUXCSSLMEMORY_COMPARE_INVALID_PARAMETER (0x69696969u)
48
49 #define MCUXCSSLMEMORY_COMPARE_FAULT (0x96969696u)
50
51
63 typedef uint64_t mcuxCsslMemory_CompareResult_t;
64
97 MCUX_CSSL_FP_FUNCTION_DECL(mcuxCsslMemory_Compare)
98 mcuxCsslMemory_CompareResult_t mcuxCsslMemory_Compare
99 (
100 mcuxCsslParamIntegrity_Checksum_t chk,
101 void const * lhs,
102 void const * rhs,
103 size_t cnt
104 );
105
114 #endif
mcuxCsslParamIntegrity_Checksum_t
uint32_t mcuxCsslParamIntegrity_Checksum_t
Type of a parameter checksum.
Definition: mcuxCsslParamIntegrity.h:71
mcuxCsslMemory_Compare
mcuxCsslMemory_CompareResult_t mcuxCsslMemory_Compare(mcuxCsslParamIntegrity_Checksum_t chk, void const *lhs, void const *rhs, size_t cnt)
Compares the two memory regions lhs and rhs.
mcuxCsslFlowProtection.h
Provides the API for the CSSL flow protection mechanism.
mcuxCsslMemory_CompareResult_t
uint64_t mcuxCsslMemory_CompareResult_t
return type for CSSL Memory compare
Definition: mcuxCsslMemory_Compare.h:63
MCUX_CSSL_FP_FUNCTION_DECL
#define MCUX_CSSL_FP_FUNCTION_DECL(id)
Declaration of a flow protected function.
Definition: mcuxCsslFlowProtection.h:119
mcuxCsslParamIntegrity.h
Top-level include file for the parameter integrity protection mechanism.