Commit Graph

12 Commits

Author SHA1 Message Date
lukechampine c2af4bc4c2 add AVX2 implementation 2020-08-01 14:48:37 -04:00
lukechampine 617550f073 amortize hasher initialization for Sum256/Sum512
As expected, the performance increase is only noticeable for
small inputs:

name            old time/op    new time/op    delta
Sum256/64-4        343ns ± 4%     243ns ± 6%  -28.96%  (p=0.008 n=5+5)
Sum256/1024-4     2.62µs ± 1%    2.50µs ± 2%   -4.57%  (p=0.008 n=5+5)
Sum256/65536-4     175µs ± 1%     170µs ± 4%     ~     (p=0.190 n=4+5)

Co-authored-by: Dmitry Yu Okunev <xaionaro@dx.center>
2020-02-02 14:53:41 -05:00
lukechampine 70299b9d3b reorder some functions and get 100% coverage 2020-01-11 21:45:09 -05:00
lukechampine 72d3c39081 make Sum functions zero-alloc 2020-01-10 17:17:39 -05:00
lukechampine 4833fabd0e fix SeekEnd behavior 2020-01-10 15:07:07 -05:00
lukechampine fd30fee094 implement Seek 2020-01-10 12:43:02 -05:00
lukechampine 3d75f823bd new API for derive_key 2020-01-10 00:55:25 -05:00
lukechampine 51ea9b114e rename output -> node, and more style changes 2020-01-09 22:46:24 -05:00
lukechampine 83947f416f unexport constants and refactor to idiomatic Go 2020-01-09 17:58:48 -05:00
lukechampine 2ca7badf67 implement XOF 2020-01-09 16:25:24 -05:00
lukechampine bd08550d6e add derive key mode 2020-01-09 15:38:44 -05:00
lukechampine 0a863bb651 initial commit 2020-01-09 15:10:01 -05:00