3.6.2 Key Code Format

The key code includes a 128-bit header carrying a unique value and the context provided during the Wrap or Wrap Generated Random operation, a payload, and a 32-bit checksum checked for transfer errors.

The length of the key code in bytes is calculated through the key length in bits using DRV_PUF_KEY_CODE_SIZE(keyLenBits) macro in the PUF driver. The size is computed as: 36 bytes (base) + (keyLenBits / 8) bytes (key length in bytes) + 16 bytes for each 384 bits in the key length (rounded up).

The length of the key code for the accepted key length is provided in the following table.

Table 3-2. Key Code Length Vs. Key Length
Key Length (bits)Key Code Length (bytes)
6460
12868
19276
25684
32092
384100
448124
512132
576140
640148
704156
768164
832188
896196
960204
1024212
2048388
3072548
4096724