chiark / gitweb /
algorithms.c: Add basic support for Keccak[1600, n].
authorMark Wooding <mdw@distorted.org.uk>
Thu, 11 May 2017 09:42:15 +0000 (10:42 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 May 2017 03:29:20 +0000 (04:29 +0100)
commitb35fdbe6fd7d9d46d5e195ae8cfd14d5729d3234
tree484c2136c63c805c637705f38985600ba33b03f7
parentcae2812998c561287d33d33683a0ef62d17e3b0c
algorithms.c: Add basic support for Keccak[1600, n].

This takes the form of a simple object which encapsulates the
Keccak[1600, n] state and allows mix and extract operations (which
correspond to the I/O portions of absorb/squeeze and duplexing) and
step, which actually invokes the permutation to advance the state.

None of this keeps track of rate or capacity limits beyond the obvious
memory-safety checks, so you can really screw yourself if you're not
careful.
algorithms.c
catacomb-python.h