ewasm-precompiles icon indicating copy to clipboard operation
ewasm-precompiles copied to clipboard

EIP152 blake2F

Open g-r-a-n-t opened this issue 4 years ago • 3 comments

Closes #36

This PR adds support for EIP152. Each test case described in the document is passing and benchmarking on my personal laptop suggests this is fast enough.

The 1200 round compression benchmarks provided in the document were ran on a Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz and averaged ~20000ns. Comparatively, 1200 round compression benchmarks on my Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz averaged ~40000ns. This seems reasonable.

g-r-a-n-t avatar Apr 28 '20 14:04 g-r-a-n-t

Thanks for this! How about creating a new directory, blake2f, and leaving the old one as-is?

axic avatar May 11 '20 23:05 axic

This looks great, would be ready to merge, apart from that small question on f.rs.

axic avatar May 12 '20 22:05 axic

Does the license look good?

g-r-a-n-t avatar May 16 '20 08:05 g-r-a-n-t