Trait octavo_crypto::block::BlockEncrypt [] [src]

pub trait BlockEncrypt {
    type BlockSize: Unsigned + ArrayLength<u8>;
    fn encrypt_block<I, O>(&self, input: I, output: O) where I: AsRef<[u8]>, O: AsMut<[u8]>;

    fn block_size() -> usize { ... }
}

Block encryptor definition

Associated Types

type BlockSize: Unsigned + ArrayLength<u8>

Single block size

Required Methods

fn encrypt_block<I, O>(&self, input: I, output: O) where I: AsRef<[u8]>, O: AsMut<[u8]>

Encrypt single block of data

Provided Methods

fn block_size() -> usize

Single block size

Implementors