MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
Data Integrity: Assembly implementation

Assembly implementation of the data integrity mechanism. More...

Macros

#define MCUX_CSSL_DI_ASM_BASE
 DI SFR base address for SCM hardware.
#define MCUX_CSSL_DI_ASM_INIT_BASE
 Assembly macro: Initialize the base address for the data integrity.
#define MCUX_CSSL_DI_ASM_INIT_BASE_COND
 Assembly macro: conditionally initialize the base address for the data integrity.
#define MCUX_CSSL_DI_ASM_VALUE
 Assembly macro: Retrieves the current data integrity value.
#define MCUX_CSSL_DI_ASM_REF_VALUE
 Assembly macro: Retrieves the current data integrity reference value.
#define MCUX_CSSL_DI_ASM_WRITE_REF
 Assembly macro: Writes the data integrity reference value.
#define MCUX_CSSL_DI_ASM_RECORD
 Assembly macro: Record the value for data integrity checking.

Detailed Description

Assembly implementation of the data integrity mechanism.

Macro Definition Documentation

◆ MCUX_CSSL_DI_ASM_BASE

#define MCUX_CSSL_DI_ASM_BASE

DI SFR base address for SCM hardware.

◆ MCUX_CSSL_DI_ASM_INIT_BASE

#define MCUX_CSSL_DI_ASM_INIT_BASE

Assembly macro: Initialize the base address for the data integrity.

This should be performed before calling other assembly macros MCUX_CSSL_DI_ASM_RECORD and MCUX_CSSL_DI_ASM_EXPUNGE. Usage in assembly: "MCUX_CSSL_DI_ASM_INIT_BASE baseReg"

Parameters
baseRegRegister that will be assigned the base address.

◆ MCUX_CSSL_DI_ASM_INIT_BASE_COND

#define MCUX_CSSL_DI_ASM_INIT_BASE_COND

Assembly macro: conditionally initialize the base address for the data integrity.

This macro assumes the register (baseReg) contains the base address of the other HW SFR, hi(addressOtherHw). If the base addresses (DI and the other hardware) are different, this macro will initialize the base address for DI; otherwise, this macro does nothing. Using this macro can avoid initializing register with the same base address. Usage in assembly: "MCUX_CSSL_DI_ASM_INIT_BASE_COND baseReg, addressOtherHw"

Parameters
baseRegRegister that will be assigned the base address.
addressOtherHwa constant, which is an address of another hardware SFR

◆ MCUX_CSSL_DI_ASM_VALUE

#define MCUX_CSSL_DI_ASM_VALUE

Assembly macro: Retrieves the current data integrity value.

Usage in assembly: "MCUX_CSSL_DI_ASM_VALUE baseReg, valueReg"

Parameters
baseRegRegister that contains the base address for DI, previously initialized with MCUX_CSSL_DI_ASM_INIT_BASE.
valueRegRegister to store the DI value.

◆ MCUX_CSSL_DI_ASM_REF_VALUE

#define MCUX_CSSL_DI_ASM_REF_VALUE

Assembly macro: Retrieves the current data integrity reference value.

Usage in assembly: "MCUX_CSSL_DI_ASM_REF_VALUE baseReg, valueReg"

Parameters
baseRegRegister that contains the base address for DI, previously initialized with MCUX_CSSL_DI_ASM_INIT_BASE.
valueRegRegister to store the reference DI value.

◆ MCUX_CSSL_DI_ASM_WRITE_REF

#define MCUX_CSSL_DI_ASM_WRITE_REF

Assembly macro: Writes the data integrity reference value.

Usage in assembly: "MCUX_CSSL_DI_ASM_WRITE_REF baseReg, valueReg"

Parameters
baseRegRegister that contains the base address for DI, previously initialized with MCUX_CSSL_DI_ASM_INIT_BASE.
valueRegRegister that contains the reference DI value.

◆ MCUX_CSSL_DI_ASM_RECORD

#define MCUX_CSSL_DI_ASM_RECORD

Assembly macro: Record the value for data integrity checking.

Usage in assembly: "MCUX_CSSL_DI_ASM_RECORD baseReg, valueReg"

Parameters
baseRegRegister that contains the base address for DI, previously initialized with MCUX_CSSL_DI_ASM_INIT_BASE.
valueRegRegister that contains the value which needs to be recorded.