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 - BelT block cipher.
- Invalid
Length Error - Error used when data smaller than 32 bytes is passed to the
belt-wblock
functions.
Functions§
- belt_
block_ raw - Raw BelT block encryption function used for implementation of higher-level algorithms.
- belt_
wblock_ dec - Wide block decryption as described in section 6.2.4 of the standard.
- belt_
wblock_ enc - Wide block encryption as described in section 6.2.3 of the standard.
- to_u32
- Helper function for transforming BelT keys and blocks from a byte array
to an array of
u32
s.