MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches

Flow protection handling core functionality. More...

Macros

#define MCUX_CSSL_FP_DECL_NAME(type, id)
 Construct a name based on type and id.
#define MCUX_CSSL_FP_DECL_IMPL(type, id)
 Generic flow protected entity declaration implementation.
#define MCUX_CSSL_FP_ID_IMPL()
 Generic identifier generator based on current line number.
#define MCUX_CSSL_FP_COUNTER_STMT_IMPL(statement)
 A statement which is only evaluated if a secure counter is used.

Detailed Description

Flow protection handling core functionality.

This subset of Flow protection macros is common to all code flow patterns to be protected.

Macro Definition Documentation

◆ MCUX_CSSL_FP_DECL_NAME

#define MCUX_CSSL_FP_DECL_NAME ( type,
id )

Construct a name based on type and id.

Parameters
typeIndicator for the type of declaration.
idIdentifier for the flow protected entity.
Returns
CSSL flow protection entity name for given type and id.

◆ MCUX_CSSL_FP_DECL_IMPL

#define MCUX_CSSL_FP_DECL_IMPL ( type,
id )

Generic flow protected entity declaration implementation.

Parameters
typeIndicator for the type of declaration.
idIdentifier for the flow protected entity.
Returns
CSSL flow protection entity declaration.

◆ MCUX_CSSL_FP_ID_IMPL

#define MCUX_CSSL_FP_ID_IMPL ( )

Generic identifier generator based on current line number.

Returns
Counter value based on the current line number.

◆ MCUX_CSSL_FP_COUNTER_STMT_IMPL

#define MCUX_CSSL_FP_COUNTER_STMT_IMPL ( statement)

A statement which is only evaluated if a secure counter is used.

This macro can be applied to create or use supporting variables that are only needed if the active configuration uses a secure counter, to avoid warnings about unused variables.

This should only be required if a codebase is used with different backend classes for different build configurations.

Parameters
statementThe statement to be conditionally included.