IPED for mimxrt2663, Revision: a0

Type: object

The chip family name

Type: enum (of string)

NXP chip family identifier.

Must be one of:

  • "mimx94145"
  • "mimx94245"
  • "mimx943"
  • "mimx94316"
  • "mimx94318"
  • "mimx94336"
  • "mimx94338"
  • "mimx94356"
  • "mimx94358"
  • "mimx94376"
  • "mimx94378"
  • "mimx94386"
  • "mimx94388"
  • "mimx94396"
  • "mimx94398"
  • "mimxrt2660"
  • "mimxrt2661"
  • "mimxrt2662"
  • "mimxrt2663"
  • "mx943"
  • "rt266x"

MCU revision

Type: enum (of string)

Revision of silicon. The 'latest' name, means most current revision.

Must be one of:

  • "a0"
  • "latest"

IPED output directory

Type: string

Directory where nxpimage writes generated IPED files. A table/keyblob file is always generated; encrypted data and combined image files are generated only when data_blobs are configured.

Output data file format

Type: enum (of string) Default: "bin"

Output file format used for all generated IPED artifacts: the table/keyblob, optional encrypted data blob file, and optional combined image.

Must be one of:

  • "bin"
  • "hex"
  • "srec"
  • "sparse"

Output table filename

Type: string Default: "iped_table"

Filename, without extension, of the standalone IPED configuration table. This binary is the keyblob payload used by bootable-image when the keyblob segment points to an IPED YAML configuration. A plain file name is placed into outputfolder; a name containing a path is relative to this configuration file, for example ../bootableimages/iped_table.

Encrypted data filename

Type: string Default: "encrypted_blob"

Filename of the encrypted data blobs without file extension. This file is generated only when datablobs are configured. A plain file name is placed into outputfolder; a name containing a path is relative to this configuration file.

Combined image filename

Type: string Default: "iped_image"

Filename of the optional combined table and encrypted-data image without file extension. It must differ from outputname and encryptedname. A plain file name is placed into output_folder; a name containing a path is relative to this configuration file.

Exported IPED table size

Type: number or stringFormat: number

Reserved size of the IPED table/keyblob area in a combined bootable image. Fixed register-image tables are padded to this size, while tagged ROM configuration files contain only their serialized payload. The default 0x400-byte area places the FCB at offset 0x400.

Absolute IPED table/keyblob address

Type: number or stringFormat: number

Absolute memory-mapped address where the IPED table/keyblob is placed. For bootable images this should match the external flash base address of the keyblob segment. It is used only to calculate relative offsets for data_blobs and the optional combined image; the value is not serialized into the IPED table.

Encrypted data alignment

Type: number or stringFormat: number Default: 8

Alignment, in bytes, used when placing encrypted data blobs in the generated encrypted-data and combined-image outputs. Individual encrypted blobs are always padded to the IPED 8-byte encryption block size.

XSPI instance

Type: enum (of string)

XSPI instance used for key derivation and device-specific encryption model selection. For current derivation-enabled families, use xspi0 or xspi1.

Must be one of:

  • "xspi0"
  • "xspi1"

Firmware version for key derivation

Type: number or stringFormat: number

Optional 32-bit firmware version used when context IV values are derived from nonce. It is also serialized into ROM configuration blobs.

Lifecycle for key derivation

Type: enum (of string)

Optional lifecycle label used by key derivation. Must be one of: fab, nxpprov, nxpfr, oemopen, oemfr, oemswc, oemlckd, oem_clsd.

Must be one of:

  • "fab"
  • "nxp_prov"
  • "nxp_fr"
  • "oem_open"
  • "oem_fr"
  • "oem_swc"
  • "oem_lckd"
  • "oem_clsd"

CUST_MK_SK fuse words


Optional array of 8 little-endian 32-bit fuse words used for key derivation. It can be specified either as an array of 8 words or as one inline 256-bit hexadecimal value. When provided together with srkh/pqc_srkh/lifecycle, SPSDK derives context key and IV values automatically.

Type: array

Must contain a minimum of 8 items

Must contain a maximum of 8 items

No Additional Items

Each item of this array must be:

Type: number or stringFormat: number
Type: number or stringFormat: number

SRKH fuse words


Optional array of 16 little-endian 32-bit classical SRKH fuse words used by key derivation. It can be specified either as an array of 16 words or as one inline 512-bit hexadecimal value.

Type: array

Must contain a minimum of 16 items

Must contain a maximum of 16 items

No Additional Items

Each item of this array must be:

Type: number or stringFormat: number
Type: number or stringFormat: number

PQC SRKH fuse words


Optional array of 16 little-endian 32-bit PQC SRKH fuse words used by key derivation. It can be specified either as an array of 16 words or as one inline 512-bit hexadecimal value.

Type: array

Must contain a minimum of 16 items

Must contain a maximum of 16 items

No Additional Items

Each item of this array must be:

Type: number or stringFormat: number
Type: number or stringFormat: number

Raw IPEDCTRL word

Type: number or stringFormat: number

Optional raw IPEDCTRL register value placed after the 16 context records. Use it only when the exact register word is known from the reference manual or ROM integration guide; if present, all boolean control flags below are ignored.

Double encryption/decryption execution

Type: boolean Default: false

Sets IPEDCTRL CONFIG. Enables the hardware double encryption/decryption path used by selected provisioning flows. Keep disabled for the usual decrypted-XIP table unless the encrypted image was prepared for double encryption.

Enable IPED CTR/GCM logic

Type: boolean Default: true

Sets IPEDCTRL IPED_EN. Enables the IPED CTR/GCM engine. For a typical decrypted-XIP image this should be enabled together with the AHB read flag matching the selected context mode.

Enable IP-command write CTR encryption

Type: boolean Default: false

Sets IPEDCTRL IPWR_EN. Enables CTR encryption for writes issued through the memory controller IP-command path. This does not affect normal memory-mapped XIP reads; keep disabled unless the application writes encrypted data through IP commands.

Enable AHB write CTR encryption

Type: boolean Default: false

Sets IPEDCTRL AHBWR_EN. Enables CTR encryption for writes on the memory-mapped AHB/XIP path. This is normally disabled for read-only boot images.

Enable AHB read CTR decryption

Type: boolean Default: true

Sets IPEDCTRL AHBRD_EN. Enables CTR decryption for memory-mapped AHB/XIP reads. This is the usual read-side flag for decrypted-XIP boot from external flash when contexts use CTR mode.

Enable IP-command write GCM encryption

Type: boolean Default: false

Sets IPEDCTRL IPGCMWR. Enables GCM encryption for writes issued through the memory controller IP-command path. Use only with GCM contexts.

Enable AHB write GCM encryption

Type: boolean Default: false

Sets IPEDCTRL AHGCMWR. Enables GCM encryption for writes on the memory-mapped AHB/XIP path. Use only with GCM contexts.

Enable AHB read GCM decryption

Type: boolean Default: false

Sets IPEDCTRL AHBGCMRD. Enables GCM decryption/authenticated reads on the memory-mapped AHB/XIP path. Use this instead of ahbreadenable when contexts use GCM mode.

Enable IPED protection

Type: boolean Default: false

Sets IPEDCTRL IPED_PROTECT. Requests hardware protection of the IPED configuration registers after the table is loaded, preventing later changes through normal register writes.

Enable IPED XEX logic

Type: boolean Default: false

Sets IPEDCTRL IPEDXEXEN. Enables the IPED XEX engine. Use together with the XEX read/write flags and contexts whose mode is xex.

Enable IP-command write XEX encryption

Type: boolean Default: false

Sets IPEDCTRL IPSXEXWE. Enables XEX encryption for writes issued through the memory controller IP-command path. Use only with XEX contexts.

Enable AHB write XEX encryption

Type: boolean Default: false

Sets IPEDCTRL AHBXEXWE. Enables XEX encryption for writes on the memory-mapped AHB/XIP path. Use only with XEX contexts.

Enable AHB read XEX decryption

Type: boolean Default: false

Sets IPEDCTRL AHBXEXRE. Enables XEX decryption for memory-mapped AHB/XIP reads. Use this instead of ahbreadenable when contexts use XEX mode.

Raw IPEDCTXCTRL words

Type: array

Optional two raw IPEDCTXCTRL words. Use only when the exact register values are known. Per-context freeze values from contexts are ORed into the first word.

Must contain a minimum of 2 items

Must contain a maximum of 2 items

No Additional Items

Each item of this array must be:

Type: number or stringFormat: number

Data blobs

Type: array of object

Optional list of plain binary blobs to encrypt with the matching IPED contexts. A blob may span several contexts or be covered only partly; each part is encrypted with the context that contains it and data outside all contexts is stored as plaintext. Encryption is available through SPSDK's built-in Python backend; an optional native backend can accelerate supported legacy models.

No Additional Items

Each item of this array must be:

Type: object

Plain data blob

Type: stringFormat: file

Path to binary file with plain data to encrypt.

Data blob address

Type: number or stringFormat: number

Absolute memory-mapped address where the data blob will be stored.

IPED contexts

Type: array of object

List of IPED context or region records. At most 16 entries are supported. Each entry describes one encrypted/decrypted external memory range.

Must contain a minimum of 1 items

Must contain a maximum of 16 items

No Additional Items

Each item of this array must be:

Type: object

Hardware region identifier

Type: number or stringFormat: number

Optional hardware context identifier from 0 to 15. If omitted, the context position in the list is used.

Context start address

Type: number or stringFormat: number

Start address of the IPED-protected external memory region. The address must be aligned to the family-specific alignment, typically 0x100 bytes.

Context end address

Type: number or stringFormat: number

End address of the IPED-protected external memory region. The address must be aligned to the family-specific alignment, typically 0x100 bytes.

IPED context mode

Type: enum (of string) Default: "ctr"

Encryption mode for this context. The global IPEDCTRL read/write enable flags must match the selected mode: CTR flags for ctr, GCM flags for gcm, XEX flags for xex. Bypass leaves the region unencrypted.

Must be one of:

  • "ctr"
  • "gcm"
  • "xex"
  • "bypass"

IPED context IV


Two 32-bit IV words, or an 8-byte hexadecimal value. Use the IV value that was used by the offline encryption tool for this context.

Type: array

Must contain a minimum of 2 items

Must contain a maximum of 2 items

No Additional Items

Each item of this array must be:

Type: number or stringFormat: number
Type: number or stringFormat: number

Context nonce for IV derivation

Type: number or stringFormat: number

64-bit nonce used for IV derivation. Required for families using the ROM configuration blob (RT266x) and when key derivation is enabled. For ROM configuration blobs the nonce is serialized and takes precedence over an explicitly configured IV.

IPED encryption key

Type: number or stringFormat: number

Optional effective 128-bit IPED encryption key used to encrypt data_blobs that fit into this context. The key is not serialized into the IPED table; it is used only by the offline encryption step.

IPED context AAD


Two 32-bit AAD words, or an 8-byte hexadecimal value. Used by GCM contexts as additional authenticated data; keep zero for modes that do not use AAD.

Type: array

Must contain a minimum of 2 items

Must contain a maximum of 2 items

No Additional Items

Each item of this array must be:

Type: number or stringFormat: number
Type: number or stringFormat: number

Context freeze value

Type: number or stringFormat: number Default: 0

Hardware-defined two-bit freeze value for this context in IPEDCTXCTRL. Non-zero values request context locking according to the device reference manual.