Security Overview

Note

am13e230x is used as the device name in many commands and paths below. Replace with other supported device names based on the device you are using.

Device Lifecycle States

The AM13x device has two primary security lifecycle states that determine its operational capabilities and security posture.

HSFS (High Security Field Securable)

  • The device is in its initial, factory-default state with no cryptographic keys provisioned

  • Capabilities

    • Full debug access, no secure boot enforcement

HSSE (High Security Security Enforced)

  • The device has cryptographic AES-CMAC keys provisioned in OTP (One-Time Programmable) memory

  • Capabilities

    • Secure boot enforcement, controlled debug access, device lifecycle protection

Key Provisioning: Transition from HSFS to HSSE

To enable secure boot and advanced security features, the device must be transitioned from HSFS to HSSE state. This is accomplished through Key Provisioning using the CyberShield Toolkit (TI-CST).

What Happens During Key Provisioning

  1. Key Generation: Four 128-bit (16-byte) AES-CMAC keys are generated for provisioning (or provided by the user)

  2. BCH Encoding: Keys are encoded using BCH(288,261,7) error correction algorithm

  3. OTP Programming: Encoded keys are permanently programmed into device OTP memory via JTAG/debugger

  4. Lifecycle Transition: Device state is automatically transitioned from HSFS to HSSE once the keys are provisioned

  5. Irreversible: Once in HSSE state, the device cannot return to HSFS (one-way transition)

Key Provisioning Process

Use the CyberShield Toolkit to provision keys:

# IMPORTANT: Replace argument to --device with the required device name

# Step 1: Generate BCH-encoded payload from four key files
# IMPORTANT: Replace key1.bin, key2.bin, key3.bin, key4.bin with actual paths to your key files
#            key{n}.bin points to n-th 128-bit AES-CMAC key file
# IMPORTANT: 'payload.bin' is the BCH-encoded 72-byte provisioning payload file
#            that will be programmed into device OTP memory
ti_cst --device am13e230x encode-keys key1.bin key2.bin key3.bin key4.bin --output payload.bin

# Step 2: Program device with payload (device transitions to HSSE)
# IMPORTANT: Replace arguments to --ccxml and --ccs-path to point
#            your device CCXML and CCS install path
ti_cst --device am13e320x provision-keys \
  --ccxml C:/ti/ccs2100/ccs/ccs_base/common/targetdb/devices/AM13E23019.xml \
  --ccs-path C:/ti/ccs2100 \
  --payload payload.bin

Key Structure

Four 128-bit (16-byte) AES-CMAC keys are required for provisioning:

  • Key 1: Initial device root of trust for secure boot and authentication

  • Key 2: Backup root of trust (used for key revision if Key 1 is compromised)

  • Key 3: Backup root of trust (used for key revision if Key 2 is compromised)

  • Key 4: Backup root of trust (used for key revision if Key 3 is compromised)

This multi-key structure provides key revision capability for security recovery. Initially, Key 1 is used as the device root of trust. If Key 1 is compromised, the device can be updated to use Key 2. Subsequently, if Key 2 is compromised, it can be revised to Key 3, and then to Key 4. This enables up to four generations of root of trust recovery during the device’s lifetime.

Important

Key provisioning is a one-way, irreversible process. Once keys are programmed into OTP memory, the device permanently transitions from HSFS to HSSE state and cannot be reverted. Ensure all keys are properly generated and verified before provisioning.

What’s Next