pub(crate) struct State {
r: [u32; 5],
h: [u32; 5],
pad: [u32; 4],
}Fields§
§r: [u32; 5]§h: [u32; 5]§pad: [u32; 4]Implementations§
Trait Implementations§
Source§impl BlockSizeUser for State
impl BlockSizeUser for State
Source§impl ParBlocksSizeUser for State
impl ParBlocksSizeUser for State
Source§impl UhfBackend for State
impl UhfBackend for State
Source§fn proc_block(&mut self, block: &Block)
fn proc_block(&mut self, block: &Block)
Process single block.
Source§fn proc_par_blocks(
&mut self,
blocks: &GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocksSize>,
)
fn proc_par_blocks( &mut self, blocks: &GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocksSize>, )
Process several blocks in parallel.
Source§fn blocks_needed_to_align(&self) -> usize
fn blocks_needed_to_align(&self) -> usize
Returns the number of blocks that should be passed to
Self::proc_block before
Self::proc_par_blocks can be used efficiently. This is always less than
Self::ParBlocksSize.Source§impl UniversalHash for State
impl UniversalHash for State
Source§fn update_with_backend(
&mut self,
f: impl UhfClosure<BlockSize = Self::BlockSize>,
)
fn update_with_backend( &mut self, f: impl UhfClosure<BlockSize = Self::BlockSize>, )
Update hash function state using the provided rank-2 closure.
Source§fn update(&mut self, blocks: &[GenericArray<u8, Self::BlockSize>])
fn update(&mut self, blocks: &[GenericArray<u8, Self::BlockSize>])
Update hash function state with the provided block.
Source§fn update_padded(&mut self, data: &[u8])
fn update_padded(&mut self, data: &[u8])
Input data into the universal hash function. If the length of the
data is not a multiple of the block size, the remaining data is
padded with zeroes up to the
BlockSize. Read moreAuto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more