Streebog

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

Constructors

this
this()
Undocumented in source.
this
this(size_t bitMode)
Undocumented in source.

Members

Aliases

currState
alias currState = currentObjectState
Undocumented in source.

Functions

finish
ubyte[] finish()

Finishes the calculation of the hash sum and returns it.

pushFront
void pushFront(ubyte[] portion)

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

Static functions

E
ubyte[64] E(ubyte[64] K, ubyte[64] m)
Undocumented in source. Be warned that the author may not have intended to support it.
L
ubyte[64] L(ubyte[64] state)
Undocumented in source. Be warned that the author may not have intended to support it.
P
ubyte[64] P(ubyte[64] state)
Undocumented in source. Be warned that the author may not have intended to support it.
S
ubyte[64] S(ubyte[64] state)
Undocumented in source. Be warned that the author may not have intended to support it.
calcHash
ubyte[] calcHash(ubyte[] msg)

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

g
ubyte[64] g(ubyte[64] N, ubyte[64] h, ubyte[64] m)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

A
ulong[64] A;
Undocumented in source.
C
ubyte[64][12] C;
Undocumented in source.
IV256
ubyte[64] IV256;
Undocumented in source.
IV512
ubyte[64] IV512;
Undocumented in source.
piTable
ubyte[256] piTable;
Undocumented in source.
tauTable
ubyte[64] tauTable;
Undocumented in source.

Structs

ObjectState
struct ObjectState
Undocumented in source.

Variables

bitMode
size_t bitMode;
Undocumented in source.
currentObjectState
ObjectState currentObjectState;
Undocumented in source.

Meta