[][src]Crate gost94

An implementation of the GOST R 34.11-94 cryptographic hash algorithm.

Usage

use gost94::{Gost94Test, Digest};
use hex_literal::hex;

// create a Gost94 hasher instance with test S-box
let mut hasher = Gost94Test::new();

// process input message
hasher.update(b"hello world");

// acquire hash digest in the form of GenericArray,
// which in this case is equivalent to [u8; 32]
let result = hasher.finalize();
assert_eq!(result[..], hex!("
    1bb6ce69d2e895a78489c87a0712a2f40258d1fae3a4666c23f8f487bef0e22a
"));

Also see RustCrypto/hashes readme.

Re-exports

pub use digest;

Structs

Gost94CryptoPro

GOST94 state

Gost94

GOST94

Gost94Test

GOST94 state

Gost94s2015

GOST94 state

Traits

Digest

The Digest trait specifies an interface common for digest functions.