MCUX CLNS MCUX Crypto Library Normal Secure |

mcuxCsslParamIntegrity.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
22
23 #ifndef MCUXCSSLPARAMINTEGRITY_H
24 #define MCUXCSSLPARAMINTEGRITY_H
25
26 #include <stdint.h>
27 #include <stddef.h>
28 #include <stdbool.h>
29 #include <mcuxCsslFlowProtection.h>
30
46 #define MCUXCSSLPARAMINTEGRITY_BASE_CHECKSUM ((mcuxCsslParamIntegrity_Checksum_t)0xb7151628u)
47
48 #define MCUXCSSLPARAMINTEGRITY_CHECK_VALID ((uint32_t)0x6969u)
49
50 #define MCUXCSSLPARAMINTEGRITY_CHECK_INVALID ((uint32_t)0x9696u)
51
52
66 typedef void * mcuxCsslParamIntegrity_AssertionCpuWordSize_t[(4u == sizeof(size_t)) ? (+1) : (-1)];
67
71 typedef uint32_t mcuxCsslParamIntegrity_Checksum_t;
72
91 mcuxCsslParamIntegrity_Checksum_t mcuxCsslParamIntegrity_Protect(size_t nargs, ...);
92
103 MCUX_CSSL_FP_FUNCTION_DECL(mcuxCsslParamIntegrity_Validate)
104 uint64_t mcuxCsslParamIntegrity_Validate(mcuxCsslParamIntegrity_Checksum_t chk, size_t nargs, ...);
105
114 #endif
mcuxCsslParamIntegrity_Checksum_t
uint32_t mcuxCsslParamIntegrity_Checksum_t
Type of a parameter checksum.
Definition: mcuxCsslParamIntegrity.h:71
mcuxCsslParamIntegrity_Protect
mcuxCsslParamIntegrity_Checksum_t mcuxCsslParamIntegrity_Protect(size_t nargs,...)
Calculates a parameter checksum.
mcuxCsslFlowProtection.h
Provides the API for the CSSL flow protection mechanism.
mcuxCsslParamIntegrity_Validate
uint64_t mcuxCsslParamIntegrity_Validate(mcuxCsslParamIntegrity_Checksum_t chk, size_t nargs,...)
Verifies the correctness of a parameter checksum.
MCUX_CSSL_FP_FUNCTION_DECL
#define MCUX_CSSL_FP_FUNCTION_DECL(id)
Declaration of a flow protected function.
Definition: mcuxCsslFlowProtection.h:119
mcuxCsslParamIntegrity_AssertionCpuWordSize_t
void * mcuxCsslParamIntegrity_AssertionCpuWordSize_t[(4u==sizeof(size_t)) ?(+1) :(-1)]
Build time assertion to ensure CPU word size of 32 bit.
Definition: mcuxCsslParamIntegrity.h:66