hashlet-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Hashlet-users] HMAC Issue created


From: Josh Datko
Subject: [Hashlet-users] HMAC Issue created
Date: Mon, 27 Jan 2014 11:35:41 -0700

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.

The unimplemented functions are here: https://github.com/cryptotronix/hashlet/blob/faf3ed754f88df07111e87c005421a8370a3ce96/src/driver/command.c#L1249-L1268

The example command buildup is here: https://github.com/cryptotronix/hashlet/blob/faf3ed754f88df07111e87c005421a8370a3ce96/src/driver/command.c#L739-L758

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!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]