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 0x80, zeros and 64-bit message length in a byte order specified by B

Pad message with 0x80, zeros and 128-bit message length in the big-endian byte order

Pad message with a 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

Reset buffer by setting cursor position to zero

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>