5.3.4.5 GenDig - Counter
In the Counter mode of the GenDig
command, the
binary value of the counter is included in the TempKey calculation.
The Nonce
command must be run prior to the first
GenDig
command to load a value into TempKey.
Subsequent GenDig
commands will use the value from
the previous GenDig operation.
Opcode |
Mode |
KeyID |
Data | Description |
---|---|---|---|---|
0x15 | 0x04 | 0x00 00 | — | Include Counter[0] value |
0x00 01 | — | Include Counter[1] value |
- KeyId specifies the monotonic counter value to be used in the TempKey calculation.
Name | Size | Description |
---|---|---|
Response | 1 byte |
0x00 - If successful. Error code - If the command fails. |
- TempKey.Valid flag will be set to 1 if successful, otherwise it is 0.
- TempKey.GenDigData will be set to 0.
32 bytes |
All Zeros |