Rust implementation of the Kuznechik (GOST R 34.12-2015) symmetric block cipher.
- Pure Rust implementation.
- Safe and efficient.
- Verified against standard GOST R 34.12-2015 test vectors.
- Zero external dependencies.
Add to your Cargo.toml:
[dependencies]
kuznechik = { path = "../kuznechik/rust" }use kuznechik::Kuznechik;
let key = [0u8; 32];
let cipher = Kuznechik::new(&key);
let plaintext = [0u8; 16];
let ciphertext = cipher.encrypt(&plaintext);
let decrypted = cipher.decrypt(&ciphertext);Run the included tests:
cargo testMIT