I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 8e292820 authored by zzz's avatar zzz
Browse files

Prop 111: SipHash keys little endian

parent a81f2a32
No related branches found
No related tags found
No related merge requests found
......@@ -1565,15 +1565,15 @@ ck = from handshake phase
sip_master = (all zeros)
sipkeys_ab = HMAC-SHA256(temp_key, byte(0x01)).
sipk1_ab = sipkeys_ab[0:7], big endian
sipk2_ab = sipkeys_ab[8:15], big endian
sipk1_ab = sipkeys_ab[0:7], little endian
sipk2_ab = sipkeys_ab[8:15], little endian
sipiv_ab = sipkeys_ab[16:23]
Bob to Alice SipHash k1, k2, IV:
sipkeys_ba = HMAC-SHA256(temp_key, sipkeys_ab || byte(0x02)).
sipk1_ba = sipkeys_ba[0:7], big endian
sipk2_ba = sipkeys_ba[8:15], big endian
sipk1_ba = sipkeys_ba[0:7], little endian
sipk2_ba = sipkeys_ba[8:15], little endian
sipiv_ba = sipkeys_ba[16:23]
// overwrite the temp_key in memory, no longer needed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment