Crate kuznyechik

Source
Expand description

Pure Rust implementation of the Kuznyechik (GOST R 34.12-2015) block cipher.

§⚠️ Security Warning: Hazmat!

This crate implements only the low-level block cipher function, and is intended for use for implementing higher-level constructions only. It is NOT intended for direct use in applications.

USE AT YOUR OWN RISK!

§Configuration Flags

You can modify crate using the following configuration flag:

  • kuznyechik_force_soft: force software implementation.

It can be enabled using RUSTFLAGS environmental variable (e.g. RUSTFLAGS="--cfg kuznyechik_force_soft") or by modifying .cargo/config.

Re-exports§

pub use cipher;

Structs§

Kuznyechik
Kuznyechik (GOST R 34.12-2015) block cipher
KuznyechikDec
Kuznyechik (GOST R 34.12-2015) block cipher (decrypt-only)
KuznyechikEnc
Kuznyechik (GOST R 34.12-2015) block cipher (encrypt-only)

Type Aliases§

Block
128-bit Kuznyechik block
Key
256-bit Kuznyechik key