Struct ghash::GHashBackend
source · pub(crate) struct GHashBackend<'b, B: UhfBackend>(pub(crate) &'b mut B);
Tuple Fields§
§0: &'b mut B
Trait Implementations§
source§impl<'b, B: UhfBackend> BlockSizeUser for GHashBackend<'b, B>
impl<'b, B: UhfBackend> BlockSizeUser for GHashBackend<'b, B>
§type BlockSize = <B as BlockSizeUser>::BlockSize
type BlockSize = <B as BlockSizeUser>::BlockSize
Size of the block in bytes.
source§fn block_size() -> usize
fn block_size() -> usize
Return block size in bytes.
source§impl<'b, B: UhfBackend> ParBlocksSizeUser for GHashBackend<'b, B>
impl<'b, B: UhfBackend> ParBlocksSizeUser for GHashBackend<'b, B>
§type ParBlocksSize = <B as ParBlocksSizeUser>::ParBlocksSize
type ParBlocksSize = <B as ParBlocksSizeUser>::ParBlocksSize
Number of blocks which can be processed in parallel.
source§impl<'b, B: UhfBackend> UhfBackend for GHashBackend<'b, B>
impl<'b, B: UhfBackend> UhfBackend for GHashBackend<'b, B>
source§fn proc_block(&mut self, x: &Block<B>)
fn proc_block(&mut self, x: &Block<B>)
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
.Auto Trait Implementations§
impl<'b, B> Freeze for GHashBackend<'b, B>
impl<'b, B> RefUnwindSafe for GHashBackend<'b, B>where
B: RefUnwindSafe,
impl<'b, B> Send for GHashBackend<'b, B>where
B: Send,
impl<'b, B> Sync for GHashBackend<'b, B>where
B: Sync,
impl<'b, B> Unpin for GHashBackend<'b, B>
impl<'b, B> !UnwindSafe for GHashBackend<'b, B>
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