Keccak

implementation of SHA-3 based on following KeccakNISTInterface.c from http://keccak.noekeon.org/ Following the naming conventions used in the C source code to enable easy review of the implementation.

@safe
struct Keccak (
uint bitLength
) if (
bitLength == 224 ||
bitLength == 256
||
bitLength == 288
||
bitLength == 384
||
bitLength == 512
) {}

Members

Aliases

update
alias update = put
Undocumented in source.

Functions

doFinal
uint doFinal(ubyte[] output)

Calculate the final hash value.

finish
ubyte[digestLength] finish()

Calculate the final hash value.

put
void put(ubyte[] input)
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

blockSize
enum blockSize;
Undocumented in source.
byteLength
enum byteLength;

size of block that the compression function is applied to in bytes

digestLength
enum digestLength;
Undocumented in source.
name
enum name;
Undocumented in source.

Meta