Crate belt_block
source ·Expand description
Pure Rust implementation of the BelT block cipher specified in STB 34.101.31-2020.
§⚠️ 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!
Re-exports§
pub use cipher;
Structs§
- BelT block cipher.
- Error used when data smaller than 32 bytes is passed to the
belt-wblock
functions.
Functions§
- Raw BelT block encryption function used for implementation of higher-level algorithms.
- Wide block decryption as described in section 6.2.4 of the standard.
- Wide block encryption as described in section 6.2.3 of the standard.
- Helper function for transforming BelT keys and blocks from a byte array to an array of
u32
s.