An implementation of the Streebog cryptographic hash function. It's officially known as GOST R 34.11-2012.
This implementation returns digest result using little-endian encoding in the form of array with least significant octets first, thus compared to specifications which uses big-endian result will have "reversed" order of octets.
Usage
An example of using Streebog256
and Streebog256
is:
use ;
// create a hasher object, to use it do not forget to import `Digest` trait
let mut hasher = default;
// write input message
hasher.input;
// read hash digest (it will consume hasher)
let result = hasher.result;
// same for Streebog512
let mut hasher = default;
hasher.input;
let result = hasher.result;