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

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.

FromBlockCipher

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

NewBlockCipher

Instantiate a BlockCipher algorithm.

NewCipher

Cipher creation trait.

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 NewBlockCipher.

CipherKey

Key for an algorithm that implements NewCipher.

Nonce

Nonce for an algorithm that implements NewCipher.

ParBlocks

Block on which a BlockCipher operates in parallel.