Skip to main content

Crate tc_dstu7624_wrap

Crate tc_dstu7624_wrap 

Source
Expand description

DSTU 7624:2014 (Kalyna) key wrapping over the tc_dstu7624 engines, with the tc_key_wrap contracts.

The wrapper appends an all-zero integrity block and applies the DSTU 7624 wrapping transformation over half-block registers. The standard defines no padding, so the wrapped key must be a whole number of cipher blocks. The crate is no_std and needs no allocator.

Structs§

Dstu7624WrapEngine
DSTU 7624 key wrapping with a compile-time block width.

Type Aliases§

Dstu7624WrapEngine128
DSTU 7624 key wrapping with a 128-bit block and a 128- or 256-bit key-encryption key.
Dstu7624WrapEngine256
DSTU 7624 key wrapping with a 256-bit block and a 256- or 512-bit key-encryption key.
Dstu7624WrapEngine512
DSTU 7624 key wrapping with a 512-bit block and a 512-bit key-encryption key.
Dstu7624WrapError
DSTU 7624 key-wrap operation error.
Dstu7624WrapInitError
DSTU 7624 key-wrapper initialization error.