Trait block_buffer::DigestBuffer [−][src]
pub trait DigestBuffer<BlockSize: ArrayLength<u8>>: Default { fn digest_blocks(
&mut self,
input: &[u8],
compress: impl FnMut(&[Block<BlockSize>])
); fn reset(&mut self); }
Trait which generalizes digest functionality of buffers.
Required methods
fn digest_blocks(
&mut self,
input: &[u8],
compress: impl FnMut(&[Block<BlockSize>])
)[src]
&mut self,
input: &[u8],
compress: impl FnMut(&[Block<BlockSize>])
)
Digest data in input in blocks of size BlockSize using
the compress function, which accepts slice of blocks.
fn reset(&mut self)[src]
Reset buffer by setting cursor position to zero.
Implementors
impl<B: ArrayLength<u8>> DigestBuffer<B> for BlockBuffer<B>[src]
impl<B: ArrayLength<u8>> DigestBuffer<B> for BlockBuffer<B>[src]impl<B: ArrayLength<u8>> DigestBuffer<B> for LazyBlockBuffer<B>[src]
impl<B: ArrayLength<u8>> DigestBuffer<B> for LazyBlockBuffer<B>[src]