FNV

Template API FNV-1(a) hash implementation.

struct FNV (
ulong bitLength
bool fnv1a = false
) {
enum uint fnvPrime;
enum ulong fnvPrime;
enum uint fnvOffsetBasis;
enum ulong fnvOffsetBasis;
}

Members

Functions

finish
ubyte[bitLength / 8] finish()

Returns the finished FNV digest. This also calls start to reset the internal state.

put
void put(scope const(ubyte)[] data...)

Feeds the digest with data.

start
void start()

Initializes the digest calculation.

Meta