Crate cipher[][src]

This crate defines a set of traits which describe the functionality of block ciphers and stream ciphers.

Re-exports

pub use blobby;
pub use generic_array;

Modules

consts

Type aliases for many constants.

errors

Error types.

Macros

block_cipher_benchdev

Define block cipher benchmark

block_cipher_testdev

Define block cipher test

stream_cipher_async_benchdev

Create asynchronous stream cipher benchmarks

stream_cipher_async_testdev

Test core functionality of asynchronous stream cipher

stream_cipher_seek_testdev

Test stream synchronous stream cipher seeking capabilities

stream_cipher_sync_benchdev

Create synchronous stream cipher benchmarks

stream_cipher_testdev

Test core functionality of synchronous stream cipher

Structs

BlockModeDecryptWrapper

Convinience wrapper around the BlockModeDecrypt trait, which handles data buffering and provides slice-based methods.

BlockModeEncryptWrapper

Convinience wrapper around the BlockModeEncrypt trait, which handles data buffering and provides slice-based methods.

Traits

AsyncStreamCipher

Asynchronous stream cipher core trait.

BlockCipher

Trait which marks a type as being a block cipher.

BlockDecrypt

Decrypt-only functionality for block ciphers.

BlockDecryptMut

Decrypt-only functionality for block ciphers with mutable access to self.

BlockEncrypt

Encrypt-only functionality for block ciphers.

BlockEncryptMut

Encrypt-only functionality for block ciphers with mutable access to self.

BlockMode

Trait for types which implement a block cipher mode of operation.

BlockModeDecrypt

Trait for a block cipher mode of operation block-level decryptor.

BlockModeEncrypt

Trait for a block cipher mode of operation block-level encryptor.

BlockModeIvState

Trait for a block mode, used to obtain the current state in the form of an IV that can initialize a BlockMode later and resume the original operation.

FromBlockCipher

Trait for types which can be initialized from a block cipher.

FromBlockCipherNonce

Trait for types which can be initialized from a block cipher and nonce.

FromKey

Trait for types which can be created from key.

FromKeyNonce

Trait for types which can be created from key and nonce.

SeekNum

Trait implemented for numeric types which can be used with the StreamCipherSeek trait.

StreamCipher

Synchronous stream cipher core trait.

StreamCipherSeek

Trait for seekable stream ciphers.

Type Definitions

Block

Block on which a BlockCipher operates.

BlockCipherKey

Key for an algorithm that implements FromKey.

ParBlocks

Block on which a BlockCipher operates in parallel.