keylife - 2025.1 English - UG1283

Bootgen User Guide (UG1283)

Document ID
UG1283
Release Date
2025-05-29
Version
2025.1 English

Syntax

[keylife] <int value>

Description

The keylife attribute is used in the context of key rolling, which involves using multiple keys to encrypt different segments of a boot image. This attribute specifies the number of blocks or segments for which a particular key is valid before it is rolled over to the next key. keylife translates to BITSTREAM.ENCRYPTION.RSAKEYLIFEFRAMES when RSA authentication is selected and BITSTREAM.ENCRYPTION.KEYLIFE when RSA is not selected.

Arguments

Positive integer value.

Example

Sample BIF - test.bif
image {
  name = pmc_subsys, id = 0x1c000001
  partition {
    id = 0x01, type = bootloader, encryption=aes, keysrc = bbram_red_key, aeskeyfile = bbram_red_key.nky, dpacm_enable, keylife = 32, file = plm.elf
  }
  partition {
    id = 0x02, type = application, encryption=aes, aeskeyfile = app_key.nky, keylife = 64, file = lpd.cdo
  }
}