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>)
)
pub fn len64_padding_be(
&mut self,
data_len: u64,
f: impl FnMut(&GenericArray<u8, BlockSize>)
)
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>)
)
pub fn len64_padding_le(
&mut self,
data_len: u64,
f: impl FnMut(&GenericArray<u8, BlockSize>)
)
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>)
)
pub fn len128_padding_be(
&mut self,
data_len: u128,
f: impl FnMut(&GenericArray<u8, BlockSize>)
)
Pad message with 0x80, zeros and 128-bit message length using big-endian byte order
Trait Implementations
Returns the “default value” for a type. Read more