Struct block_buffer::BlockBuffer[][src]

pub struct BlockBuffer<BlockSize: ArrayLength<u8>> { /* fields omitted */ }

Buffer for block processing of data

Methods

impl<BlockSize: ArrayLength<u8>> BlockBuffer<BlockSize>
[src]

Process data in input in blocks of size BlockSize using function f.

Variant that doesn't flush the buffer until there's additional data to be processed. Suitable for tweakable block ciphers like Threefish that need to know whether a block is the last data block before processing it.

Pad message with provided prefix and 64 bit message length in big-endian format

Pad message with provided prefix and 64 bit message length in little-endian format

Pad message with provided prefix and 128 bit message length in big-endian format

Pad message with provided prefix and 128 bit message length in little-endian format

Pad message with given padding P, returns PadError if internall buffer is full, which can only happen if input_lazy was used.

Return size of the internall buffer in bytes

Return current cursor position

Return number of remaining bytes in the internall buffer

Trait Implementations

impl<BlockSize: Clone + ArrayLength<u8>> Clone for BlockBuffer<BlockSize>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<BlockSize: Default + ArrayLength<u8>> Default for BlockBuffer<BlockSize>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<BlockSize> Send for BlockBuffer<BlockSize>

impl<BlockSize> Sync for BlockBuffer<BlockSize>