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

Macros

#define PRINCE_SR_XOMX_SR_XOM_COUNT

ENC_ENABLE - Encryption Enable register

#define PRINCE_ENC_ENABLE_EN_MASK
#define PRINCE_ENC_ENABLE_EN_SHIFT
#define PRINCE_ENC_ENABLE_EN(x)

MASK_LSB - Data Mask register, 32 Least Significant Bits

#define PRINCE_MASK_LSB_MASKVAL_MASK
#define PRINCE_MASK_LSB_MASKVAL_SHIFT
#define PRINCE_MASK_LSB_MASKVAL(x)

MASK_MSB - Data Mask register, 32 Most Significant Bits

#define PRINCE_MASK_MSB_MASKVAL_MASK
#define PRINCE_MASK_MSB_MASKVAL_SHIFT
#define PRINCE_MASK_MSB_MASKVAL(x)

LOCK - Lock register

#define PRINCE_LOCK_LOCKREG0_MASK
#define PRINCE_LOCK_LOCKREG0_SHIFT
#define PRINCE_LOCK_LOCKREG0(x)
#define PRINCE_LOCK_LOCKREG1_MASK
#define PRINCE_LOCK_LOCKREG1_SHIFT
#define PRINCE_LOCK_LOCKREG1(x)
#define PRINCE_LOCK_LOCKREG2_MASK
#define PRINCE_LOCK_LOCKREG2_SHIFT
#define PRINCE_LOCK_LOCKREG2(x)
#define PRINCE_LOCK_LOCKMASK_MASK
#define PRINCE_LOCK_LOCKMASK_SHIFT
#define PRINCE_LOCK_LOCKMASK(x)

IV_LSB0 - Initial Vector register for region 0, Least Significant Bits

#define PRINCE_IV_LSB0_IVVAL_MASK
#define PRINCE_IV_LSB0_IVVAL_SHIFT
#define PRINCE_IV_LSB0_IVVAL(x)

IV_MSB0 - Initial Vector register for region 0, Most Significant Bits

#define PRINCE_IV_MSB0_IVVAL_MASK
#define PRINCE_IV_MSB0_IVVAL_SHIFT
#define PRINCE_IV_MSB0_IVVAL(x)

BASE_ADDR0 - Base Address for region 0 register

#define PRINCE_BASE_ADDR0_ADDR_FIXED_MASK
#define PRINCE_BASE_ADDR0_ADDR_FIXED_SHIFT
#define PRINCE_BASE_ADDR0_ADDR_FIXED(x)
#define PRINCE_BASE_ADDR0_ADDR_PRG_MASK
#define PRINCE_BASE_ADDR0_ADDR_PRG_SHIFT
#define PRINCE_BASE_ADDR0_ADDR_PRG(x)

SR_ENABLE0 - Sub-Region Enable register for region 0

#define PRINCE_SR_ENABLE0_EN_MASK
#define PRINCE_SR_ENABLE0_EN_SHIFT
#define PRINCE_SR_ENABLE0_EN(x)

IV_LSB1 - Initial Vector register for region 1, Least Significant Bits

#define PRINCE_IV_LSB1_IVVAL_MASK
#define PRINCE_IV_LSB1_IVVAL_SHIFT
#define PRINCE_IV_LSB1_IVVAL(x)

IV_MSB1 - Initial Vector register for region 1, Most Significant Bits

#define PRINCE_IV_MSB1_IVVAL_MASK
#define PRINCE_IV_MSB1_IVVAL_SHIFT
#define PRINCE_IV_MSB1_IVVAL(x)

BASE_ADDR1 - Base Address for region 1 register

#define PRINCE_BASE_ADDR1_ADDR_FIXED_MASK
#define PRINCE_BASE_ADDR1_ADDR_FIXED_SHIFT
#define PRINCE_BASE_ADDR1_ADDR_FIXED(x)
#define PRINCE_BASE_ADDR1_ADDR_PRG_MASK
#define PRINCE_BASE_ADDR1_ADDR_PRG_SHIFT
#define PRINCE_BASE_ADDR1_ADDR_PRG(x)

SR_ENABLE1 - Sub-Region Enable register for region 1

#define PRINCE_SR_ENABLE1_EN_MASK
#define PRINCE_SR_ENABLE1_EN_SHIFT
#define PRINCE_SR_ENABLE1_EN(x)

IV_LSB2 - Initial Vector register for region 2, Least Significant Bits

#define PRINCE_IV_LSB2_IVVAL_MASK
#define PRINCE_IV_LSB2_IVVAL_SHIFT
#define PRINCE_IV_LSB2_IVVAL(x)

IV_MSB2 - Initial Vector register for region 2, Most Significant Bits

#define PRINCE_IV_MSB2_IVVAL_MASK
#define PRINCE_IV_MSB2_IVVAL_SHIFT
#define PRINCE_IV_MSB2_IVVAL(x)

BASE_ADDR2 - Base Address for region 2 register

#define PRINCE_BASE_ADDR2_ADDR_FIXED_MASK
#define PRINCE_BASE_ADDR2_ADDR_FIXED_SHIFT
#define PRINCE_BASE_ADDR2_ADDR_FIXED(x)
#define PRINCE_BASE_ADDR2_ADDR_PRG_MASK
#define PRINCE_BASE_ADDR2_ADDR_PRG_SHIFT
#define PRINCE_BASE_ADDR2_ADDR_PRG(x)

SR_ENABLE2 - Sub-Region Enable register for region 2

#define PRINCE_SR_ENABLE2_EN_MASK
#define PRINCE_SR_ENABLE2_EN_SHIFT
#define PRINCE_SR_ENABLE2_EN(x)

ERR - Error status register

#define PRINCE_ERR_ERRSTAT_MASK
#define PRINCE_ERR_ERRSTAT_SHIFT
#define PRINCE_ERR_ERRSTAT(x)

SR_XOMX_SR_XOM - XOM enable for sub region 0..XOM enable for sub region 2

#define PRINCE_SR_XOMX_SR_XOM_XOM_EN_MASK
#define PRINCE_SR_XOMX_SR_XOM_XOM_EN_SHIFT
#define PRINCE_SR_XOMX_SR_XOM_XOM_EN(x)

Detailed Description

Macro Definition Documentation

◆ PRINCE_ENC_ENABLE_EN

#define PRINCE_ENC_ENABLE_EN ( x)

EN - Enables PRINCE encryption for flash programming. 0b0..Encryption of writes to the flash controller DATAW* registers is disabled. 0b1..Encryption of writes to the flash controller DATAW* registers is enabled. Reading of PRINCE-encrypted flash regions is disabled.

◆ PRINCE_MASK_LSB_MASKVAL

#define PRINCE_MASK_LSB_MASKVAL ( x)

MASKVAL - Value of the 32 Least Significant Bits of the 64-bit data mask.

◆ PRINCE_MASK_MSB_MASKVAL

#define PRINCE_MASK_MSB_MASKVAL ( x)

MASKVAL - Value of the 32 Most Significant Bits of the 64-bit data mask.

◆ PRINCE_LOCK_LOCKREG0

#define PRINCE_LOCK_LOCKREG0 ( x)

LOCKREG0 - Lock Region 0 registers. 0b0..Disabled. IV_LSB0, IV_MSB0, and SR_ENABLE0 are writable. 0b1..Enabled. IV_LSB0, IV_MSB0, and SR_ENABLE0 are not writable.

◆ PRINCE_LOCK_LOCKREG1

#define PRINCE_LOCK_LOCKREG1 ( x)

LOCKREG1 - Lock Region 1 registers. 0b0..Disabled. IV_LSB1, IV_MSB1, and SR_ENABLE1 are writable. 0b1..Enabled. IV_LSB1, IV_MSB1, and SR_ENABLE1 are not writable.

◆ PRINCE_LOCK_LOCKREG2

#define PRINCE_LOCK_LOCKREG2 ( x)

LOCKREG2 - Lock Region 2 registers. 0b0..Disabled. IV_LSB2, IV_MSB2, and SR_ENABLE2 are writable. 0b1..Enabled. IV_LSB2, IV_MSB2, and SR_ENABLE2 are not writable.

◆ PRINCE_LOCK_LOCKMASK

#define PRINCE_LOCK_LOCKMASK ( x)

LOCKMASK - Lock the Mask registers. 0b0..Disabled. MASK_LSB, and MASK_MSB are writable. 0b1..Enabled. MASK_LSB, and MASK_MSB are not writable.

◆ PRINCE_IV_LSB0_IVVAL

#define PRINCE_IV_LSB0_IVVAL ( x)

IVVAL - Initial Vector value for the 32 Least Significant Bits of the 64-bit Initial Vector.

◆ PRINCE_IV_MSB0_IVVAL

#define PRINCE_IV_MSB0_IVVAL ( x)

IVVAL - Initial Vector value for the 32 Most Significant Bits of the 64-bit Initial Vector.

◆ PRINCE_BASE_ADDR0_ADDR_FIXED

#define PRINCE_BASE_ADDR0_ADDR_FIXED ( x)

ADDR_FIXED - Fixed portion of the base address of region 0.

◆ PRINCE_BASE_ADDR0_ADDR_PRG

#define PRINCE_BASE_ADDR0_ADDR_PRG ( x)

ADDR_PRG - Programmable portion of the base address of region 0.

◆ PRINCE_SR_ENABLE0_EN

#define PRINCE_SR_ENABLE0_EN ( x)

EN - Each bit in this field enables an 8KB subregion for encryption at offset 8KB*bitnum of region 0. 0b00000000000000000000000000000000..Encryption disabled for the corresponding sub-region. 0b00000000000000000000000000000001..Encryption enabled for the corresponding sub-region.

◆ PRINCE_IV_LSB1_IVVAL

#define PRINCE_IV_LSB1_IVVAL ( x)

IVVAL - Initial Vector value for the 32 Least Significant Bits of the 64-bit Initial Vector.

◆ PRINCE_IV_MSB1_IVVAL

#define PRINCE_IV_MSB1_IVVAL ( x)

IVVAL - Initial Vector value for the 32 Most Significant Bits of the 64-bit Initial Vector.

◆ PRINCE_BASE_ADDR1_ADDR_FIXED

#define PRINCE_BASE_ADDR1_ADDR_FIXED ( x)

ADDR_FIXED - Fixed portion of the base address of region 1.

◆ PRINCE_BASE_ADDR1_ADDR_PRG

#define PRINCE_BASE_ADDR1_ADDR_PRG ( x)

ADDR_PRG - Programmable portion of the base address of region 1.

◆ PRINCE_SR_ENABLE1_EN

#define PRINCE_SR_ENABLE1_EN ( x)

EN - Each bit in this field enables an 8KB subregion for encryption at offset 8KB*bitnum of region 1. 0b00000000000000000000000000000000..Encryption disabled for the corresponding sub-region. 0b00000000000000000000000000000001..Encryption enabled for the corresponding sub-region.

◆ PRINCE_IV_LSB2_IVVAL

#define PRINCE_IV_LSB2_IVVAL ( x)

IVVAL - Initial Vector value for the 32 Least Significant Bits of the 64-bit Initial Vector.

◆ PRINCE_IV_MSB2_IVVAL

#define PRINCE_IV_MSB2_IVVAL ( x)

IVVAL - Initial Vector value for the 32 Most Significant Bits of the 64-bit Initial Vector.

◆ PRINCE_BASE_ADDR2_ADDR_FIXED

#define PRINCE_BASE_ADDR2_ADDR_FIXED ( x)

ADDR_FIXED - Fixed portion of the base address of region 2.

◆ PRINCE_BASE_ADDR2_ADDR_PRG

#define PRINCE_BASE_ADDR2_ADDR_PRG ( x)

ADDR_PRG - Programmable portion of the base address of region 2.

◆ PRINCE_SR_ENABLE2_EN

#define PRINCE_SR_ENABLE2_EN ( x)

EN - Each bit in this field enables an 8KB subregion for encryption at offset 8KB*bitnum of region 2. 0b00000000000000000000000000000000..Encryption disabled for the corresponding sub-region. 0b00000000000000000000000000000001..Encryption enabled for the corresponding sub-region.

◆ PRINCE_ERR_ERRSTAT

#define PRINCE_ERR_ERRSTAT ( x)

ERRSTAT - PRINCE Error Status. This bit is write-1 to clear. 0b0..No PRINCE error. 0b1..Error. A read of a PRINCE-encrypted region was attempted while ENC_ENABLE[EN]=1.

◆ PRINCE_SR_XOMX_SR_XOM_XOM_EN

#define PRINCE_SR_XOMX_SR_XOM_XOM_EN ( x)

XOM_EN - XOM enable 0b00000000000000000000000000000000..A 0 in bit n means that decryption of data associated with sub-region n is done for both data and code read transactions. 0b00000000000000000000000000000001..A 1 in bit n means that decryption of data associated with sub-region n is done for code fetch transactions only.