5.3.6.2 Diversified MAC
A diversified MAC includes the serial number of the device. The serial number will be unique for each device and therefore, will always generate a unique SHA256 digest. The MAC is always calculated over a total of 88 bytes and always creates a 32-byte SHA256 digest.
Opcode |
Mode |
KeyID |
Data(2) | Mode Descriptions |
---|---|---|---|---|
0x08 | 0x40 | 0x00 0[Slot] | 32 bytes |
|
0x41 or 0x45(1) | 0x00 0[Slot] | 0 bytes |
| |
0x42 or 0x46(1) | 0x00 00 | 32 bytes |
|
(1) Mode[2] must match the TempKey.SourceFlag.
(2) When present, the Data parameter corresponds to the input challenge.
Name | Size | Description |
---|---|---|
Response | 1 byte | If the command fails |
32 bytes | SHA-256 digest |
# of Bytes | Mode 0x40 | Mode 0x41 or 0x45 | Mode 0x42 or 0x46 |
---|---|---|---|
32 |
Data Slot |
Data Slot |
TempKey |