706 B
706 B
kek
This is a working production-quality implementation of Keccak (SHA-3) written in pure Erlang.
You probably want to use erlang-sha3 (alternate link), which
- defaults to a NIF written in C
- uses the Erlang implementation from this repository as a fallback
You can use the otpr/erlang-sha3 zomp package.
Files
kek.erl- Keccak written in "maximally straightforward" Erlangkek_fast.erl- kek.erl with some loopy routines inlinedrc.erl- scratch file to compute Keccak "round constants"
Acknowledgements
Hans Svensson provided crucial input and also wrote kek_fast.erl.