Skip to main content

Crate kuznyechik

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 kuznyechik_backend configuration flag. It accepts the following values

  • soft: use software backend with big fused tables.
  • compact_soft: use software backend with small tables and slower performance.

The flag can be enabled using RUSTFLAGS environment variable (e.g. RUSTFLAGS='--cfg kuznyechik_backend="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