54.5.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 header (big-endian format) is 0x37 followed by word 0 to 3 of the provided context (See Context Specification for Key Operations).

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

Table 54-5. Key Code Length Versus Key Length
Key Length (bits) Key Code Length (bytes)
64 60
128 68
192 76
256 84
320 92
384 100
448 124
512 132
576 140
640 148
704 156
768 164
832 188
896 196
960 204
1024 212
2048 388
3072 548
4096 724