On the HMAC branch, Issue 25:
https://github.com/cryptotronix/hashlet/issues/25
I have the CLI infrastructure there so you see the options in the issue on how to run.
Note, this command HMACs what is in tempkey, so you don't send it any additional data.
Per page 51 of the datasheet, HMAC is calculated over:
The HMAC digest is computed using the key at SlotID as the HMAC key over a message consisting of the following
information:
32 bytes Zeros
32 bytes TempKey
1 byte Opcode (always 0x11)
1 byte Mode
2 bytes SlotID
8 bytes OTP[0:7] or zeros (see Table 8-21)
3 bytes OTP[8:10] or zeros (see Table 8-21)
1 byte SN[8]
4 bytes SN[4:7] or zeros (see Table 8-21)
2 bytes SN[0:1]
2 bytes SN[2:3] or zeros (see Table 8-21)
You can retrieve the serial num with the CLI command "serial-num" and the OTP zone is dumped with the -v option if you don't supply a file to HMAC.
Thank You!