class Streebog

The Streebog class implements GOST R 34.11-2012 for calculating a hash value.

static ubyte[] calcHash(alias bits)(in ubyte[] msg) 
if (bits == 512 || bits == 256)

The static template function takes an array of bytes and returns a hash sum.

void pushFront(in ubyte[] portion)

Accepts a sequence of data. Each new sequence is perceived as preceding relative to the previous one.

ubyte[] finish()

Finishes the calculation of the hash sum and returns it.