MCUX CLNS
MCUX Crypto Library Normal Secure

Support for flow protected switches. More...

Macros

#define MCUX_CSSL_FP_SWITCH_ID(id)
 Generator for switch identifiers. More...
 
#define MCUX_CSSL_FP_SWITCH_DECL_IMPL(id)
 Declaration implementation of a flow protected switch. More...
 
#define MCUX_CSSL_FP_SWITCH_VALUE(id)
 Macro to get the value for a given switch. More...
 
#define MCUX_CSSL_FP_SWITCH_CASE_IMPLn(id, case, ...)
 Case that is being handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_CASE_IMPL2(id, case)
 Case that is being handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_CASE_IMPL(...)
 Case that is being handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_DEFAULT_VALUE
 Value to use for default case. More...
 
#define MCUX_CSSL_FP_SWITCH_DEFAULT_IMPLn(id, ...)
 Case that is being handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL1(id)
 Case that is being handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL(...)
 Case that is being handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_TAKEN_IMPL3(id, case, condition)
 Expected that a specific case is handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_TAKEN_IMPL2(id, case)
 Expected that a specific case is handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_TAKEN_IMPL(...)
 Expected that a specific case is handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL2(id, condition)
 Expected that default case is handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL1(id)
 Expected that default case is handled from a switch. More...
 
#define MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL(...)
 Expected that default case is handled from a switch. More...
 

Detailed Description

Support for flow protected switches.

Declaration
MCUX_CSSL_FP_SWITCH_DECL_IMPL
Events
MCUX_CSSL_FP_SWITCH_CASE_IMPL
MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL
Expectations
MCUX_CSSL_FP_SWITCH_TAKEN_IMPL
MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL

Macro Definition Documentation

◆ MCUX_CSSL_FP_SWITCH_ID

#define MCUX_CSSL_FP_SWITCH_ID (   id)

Generator for switch identifiers.

Parameters
idIdentifier for the flow protected switch.
Returns
Counter value for the given loop.

◆ MCUX_CSSL_FP_SWITCH_DECL_IMPL

#define MCUX_CSSL_FP_SWITCH_DECL_IMPL (   id)

Declaration implementation of a flow protected switch.

Parameters
idIdentifier for the switch that is flow protected.

◆ MCUX_CSSL_FP_SWITCH_VALUE

#define MCUX_CSSL_FP_SWITCH_VALUE (   id)

Macro to get the value for a given switch.

Parameters
idIdentifier for the switch that is flow protected.
Returns
The counter value for the given switch id.

◆ MCUX_CSSL_FP_SWITCH_CASE_IMPLn

#define MCUX_CSSL_FP_SWITCH_CASE_IMPLn (   id,
  case,
  ... 
)

Case that is being handled from a switch.

See also
MCUX_CSSL_FP_SWITCH_CASE_IMPL
MCUX_CSSL_FP_SWITCH_CASE_IMPL2
Parameters
idIdentifier of the flow protected switch.
caseCase value that is chosen in the switch.
expectOne or more (comma separated) declarations of expected code flow behavior related to this event.

◆ MCUX_CSSL_FP_SWITCH_CASE_IMPL2

#define MCUX_CSSL_FP_SWITCH_CASE_IMPL2 (   id,
  case 
)

Case that is being handled from a switch.

See also
MCUX_CSSL_FP_SWITCH_CASE_IMPL
MCUX_CSSL_FP_SWITCH_CASE_IMPLn
Parameters
idIdentifier of the flow protected switch.
caseCase value that is chosen in the switch.

◆ MCUX_CSSL_FP_SWITCH_CASE_IMPL

#define MCUX_CSSL_FP_SWITCH_CASE_IMPL (   ...)

Case that is being handled from a switch.

Implemented as an overloaded macro to simplify the use of the API.

See also
MCUX_CSSL_FP_SWITCH_CASE_IMPL2
MCUX_CSSL_FP_SWITCH_CASE_IMPLn
Parameters
idIdentifier of the flow protected switch.
caseCase value that is chosen in the switch.
expectZero or more (comma separated) declarations of expected code flow behavior related to this event.

◆ MCUX_CSSL_FP_SWITCH_DEFAULT_VALUE

#define MCUX_CSSL_FP_SWITCH_DEFAULT_VALUE

Value to use for default case.

◆ MCUX_CSSL_FP_SWITCH_DEFAULT_IMPLn

#define MCUX_CSSL_FP_SWITCH_DEFAULT_IMPLn (   id,
  ... 
)

Case that is being handled from a switch.

See also
MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL
MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL1
Parameters
idIdentifier of the flow protected switch.
expectZero or more (comma separated) declarations of expected code flow behavior related to this event.

◆ MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL1

#define MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL1 (   id)

Case that is being handled from a switch.

See also
MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL
MCUX_CSSL_FP_SWITCH_DEFAULT_IMPLn
Parameters
idIdentifier of the flow protected switch.

◆ MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL

#define MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL (   ...)

Case that is being handled from a switch.

Implemented as an overloaded macro to simplify the use of the API.

See also
MCUX_CSSL_FP_SWITCH_DEFAULT_IMPL1
MCUX_CSSL_FP_SWITCH_DEFAULT_IMPLn
Parameters
idIdentifier of the flow protected switch.
expectZero or more (comma separated) declarations of expected code flow behavior related to this event.

◆ MCUX_CSSL_FP_SWITCH_TAKEN_IMPL3

#define MCUX_CSSL_FP_SWITCH_TAKEN_IMPL3 (   id,
  case,
  condition 
)

Expected that a specific case is handled from a switch.

See also
MCUX_CSSL_FP_SWITCH_TAKEN_IMPL
MCUX_CSSL_FP_SWITCH_TAKEN_IMPL2
Parameters
idIdentifier of the flow protected switch.
caseValue of the case that is expected to be chosen in the switch.
conditionOptional, condition under which the case is taken.

◆ MCUX_CSSL_FP_SWITCH_TAKEN_IMPL2

#define MCUX_CSSL_FP_SWITCH_TAKEN_IMPL2 (   id,
  case 
)

Expected that a specific case is handled from a switch.

See also
MCUX_CSSL_FP_SWITCH_TAKEN_IMPL
MCUX_CSSL_FP_SWITCH_TAKEN_IMPL3
Parameters
idIdentifier of the flow protected switch.
caseValue of the case that is expected to be chosen in the switch.

◆ MCUX_CSSL_FP_SWITCH_TAKEN_IMPL

#define MCUX_CSSL_FP_SWITCH_TAKEN_IMPL (   ...)

Expected that a specific case is handled from a switch.

Implemented as an overloaded macro to simplify the use of the API.

See also
MCUX_CSSL_FP_SWITCH_TAKEN_IMPL2
MCUX_CSSL_FP_SWITCH_TAKEN_IMPL3
Parameters
idIdentifier of the flow protected switch.
caseValue of the case that is expected to be chosen in the switch.
conditionOptional, condition under which the case is taken.

◆ MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL2

#define MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL2 (   id,
  condition 
)

Expected that default case is handled from a switch.

See also
MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL
MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL1
Parameters
idIdentifier of the flow protected switch.
conditionCondition under which the default case is taken.

◆ MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL1

#define MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL1 (   id)

Expected that default case is handled from a switch.

See also
MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL
MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL2
Parameters
idIdentifier of the flow protected switch.

◆ MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL

#define MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL (   ...)

Expected that default case is handled from a switch.

Implemented as an overloaded macro to simplify the use of the API.

See also
MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL1
MCUX_CSSL_FP_SWITCH_TAKEN_DEFAULT_IMPL2
Parameters
idIdentifier of the flow protected switch.
conditionOptional, condition under which the default case is taken.