GenDig - OTP

Data from the OTP zone can be included in the GenDig calculation. Data are always included in 32-byte blocks and only one block may be included on any given GenDig 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.
Table 1. Input Parameters - GenDig OTP

Opcode
(1 Byte)

Mode
(1 Byte)

KeyID(1)
(2 Bytes)

Data
(0 Bytes)

Description
0x15 0x01 0x00 00 Use OTP Block 0 as the KeyID
0x00 01 Use OTP Block 1 as the KeyID
Note:
  1. 1.KeyId specifies the OTP zone block to be used in the TempKey calculation.
Table 2. Output Response - GenDig OTP
Name Size Description
Response 1 byte

0x00 - If successful.

Error code - If the command fails.

Notes: Flag Bits
  1. 1.TempKey.Valid flag will be set to 1 if successful, otherwise it is 0.
  2. 2.TempKey.GenDigData will be set to 0.
Table 3. TempKey Calculation - GenDig OTP
 

32 bytes
1 byte
1 byte
2 bytes
1 byte
2 bytes
25 bytes
32 bytes

OTP Zone Block
Opcode = 0x15
Mode = 0x00
KeyID[0:1] = 0x0[block] 0x00
SN[8] = 0x01
SN[0:1] = 0x01 0x23
All Zeros
TempKey.Value