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§

BeltBlock
BelT block cipher.
InvalidLengthError
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 u32s.