[][src]Module lea::block

Traits used to define functionality of block ciphers.

About block ciphers

Block ciphers are keyed, deterministic permutations of a fixed-sized input "block" providing a reversible transformation to/from an encrypted output. They are one of the fundamental structural components of symmetric cryptography.

Modules

generic_array

This crate implements a structure that can be used as a generic array type. Core Rust array types [T; N] can't be used generically with respect to N, so for example this:

Structs

InvalidKeyLength

Error struct which used with NewVarKey

Traits

BlockCipher

The trait which defines in-place encryption and decryption over single block or several blocks in parallel.

BlockCipherMut

Stateful block cipher which permits &mut self access.

NewBlockCipher

Instantiate a BlockCipher algorithm.

Type Definitions

Block

Block on which a BlockCipher operates.

Key

Key for an algorithm that implements NewBlockCipher.

ParBlocks

Blocks being acted over in parallel.