Commit Graph

5 Commits

Author SHA1 Message Date
Jim Pick
5159d68fa9 In kdf, truncate key before passing to blake to match sodium-native behaviour
Currently, sodium-native and sodium-javascript are returning different
hashes. The code in hyperdrive passes a 64 byte secret key to the kdf,
but only 32 bytes are used by the native version, but all 64 bytes are
used in the javascript version. As a result, hyperdrive secret keys
can't be imported/exported across the two sodium implementations.

https://gist.github.com/jimpick/3e869522eddaad77ac1bc9e64f36e1a7
2018-03-03 17:24:12 +00:00
Emil Bay
2bae0d19af
Use independent randombytes_buf 2017-06-19 22:34:38 +02:00
Emil Bay
1967024766
Update to new blake2b 2017-06-11 20:23:06 +02:00
Emil Bay
776ffea91c
Fix keygen overflow bug 2017-06-11 10:44:02 +02:00
Emil Bay
94e3891f67
Added crypto_kdf 2017-06-07 22:38:40 +02:00