Struct block_buffer::BlockBuffer [−][src]
pub struct BlockBuffer<BlockSize: ArrayLength<u8>> { /* fields omitted */ }
Expand description
Buffer for block processing of data
Implementations
Process data in input in blocks of size BlockSize using function f.
Process data in input in blocks of size BlockSize using function f, which accepts
slice of blocks.
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.
pub fn len64_padding_be(
&mut self,
data_len: u64,
f: impl FnMut(&GenericArray<u8, BlockSize>)
)
[src]
pub fn len64_padding_be(
&mut self,
data_len: u64,
f: impl FnMut(&GenericArray<u8, BlockSize>)
)
[src]Pad message with 0x80, zeros and 64-bit message length using big-endian byte order
pub fn len64_padding_le(
&mut self,
data_len: u64,
f: impl FnMut(&GenericArray<u8, BlockSize>)
)
[src]
pub fn len64_padding_le(
&mut self,
data_len: u64,
f: impl FnMut(&GenericArray<u8, BlockSize>)
)
[src]Pad message with 0x80, zeros and 64-bit message length using little-endian byte order
pub fn len128_padding_be(
&mut self,
data_len: u128,
f: impl FnMut(&GenericArray<u8, BlockSize>)
)
[src]
pub fn len128_padding_be(
&mut self,
data_len: u128,
f: impl FnMut(&GenericArray<u8, BlockSize>)
)
[src]Pad message with 0x80, zeros and 128-bit message length using 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.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<BlockSize> RefUnwindSafe for BlockBuffer<BlockSize> where
<BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<BlockSize> Send for BlockBuffer<BlockSize>
impl<BlockSize> Sync for BlockBuffer<BlockSize>
impl<BlockSize> Unpin for BlockBuffer<BlockSize> where
<BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<BlockSize> UnwindSafe for BlockBuffer<BlockSize> where
<BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more