pub struct RetailMacCore<C>{ /* private fields */ }Expand description
Generic core Retail MAC instance, which operates over blocks.
Trait Implementations§
Source§impl<C> AlgorithmName for RetailMacCore<C>
impl<C> AlgorithmName for RetailMacCore<C>
Source§impl<C> BlockSizeUser for RetailMacCore<C>
impl<C> BlockSizeUser for RetailMacCore<C>
Source§type BlockSize = <C as BlockSizeUser>::BlockSize
type BlockSize = <C 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<C> BufferKindUser for RetailMacCore<C>
impl<C> BufferKindUser for RetailMacCore<C>
Source§type BufferKind = Eager
type BufferKind = Eager
Block buffer kind over which type operates.
Source§impl<C> Clone for RetailMacCore<C>
impl<C> Clone for RetailMacCore<C>
Source§fn clone(&self) -> RetailMacCore<C>
fn clone(&self) -> RetailMacCore<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C> Debug for RetailMacCore<C>
impl<C> Debug for RetailMacCore<C>
Source§impl<C> Drop for RetailMacCore<C>
Available on crate feature zeroize only.
impl<C> Drop for RetailMacCore<C>
Available on crate feature
zeroize only.Source§impl<C> FixedOutputCore for RetailMacCore<C>
impl<C> FixedOutputCore for RetailMacCore<C>
Source§fn finalize_fixed_core(
&mut self,
buffer: &mut Buffer<Self>,
out: &mut Output<Self>,
)
fn finalize_fixed_core( &mut self, buffer: &mut Buffer<Self>, out: &mut Output<Self>, )
Finalize state using remaining data stored in the provided block buffer,
write result into provided array and leave
self in a dirty state.Source§impl<C> KeyInit for RetailMacCore<C>where
C: BlockCipherEncrypt + SmallBlockSizeUser + BlockCipherDecrypt + KeyInit,
<C as SmallBlockSizeUser>::_BlockSize: Mul<U2>,
Prod<<C as SmallBlockSizeUser>::_BlockSize, U2>: ArraySize,
impl<C> KeyInit for RetailMacCore<C>where
C: BlockCipherEncrypt + SmallBlockSizeUser + BlockCipherDecrypt + KeyInit,
<C as SmallBlockSizeUser>::_BlockSize: Mul<U2>,
Prod<<C as SmallBlockSizeUser>::_BlockSize, U2>: ArraySize,
Source§impl<C> KeySizeUser for RetailMacCore<C>where
C: BlockCipherEncrypt + SmallBlockSizeUser + BlockCipherDecrypt,
<C as SmallBlockSizeUser>::_BlockSize: Mul<U2>,
Prod<<C as SmallBlockSizeUser>::_BlockSize, U2>: ArraySize,
impl<C> KeySizeUser for RetailMacCore<C>where
C: BlockCipherEncrypt + SmallBlockSizeUser + BlockCipherDecrypt,
<C as SmallBlockSizeUser>::_BlockSize: Mul<U2>,
Prod<<C as SmallBlockSizeUser>::_BlockSize, U2>: ArraySize,
Source§impl<C> OutputSizeUser for RetailMacCore<C>
impl<C> OutputSizeUser for RetailMacCore<C>
Source§type OutputSize = <C as BlockSizeUser>::BlockSize
type OutputSize = <C as BlockSizeUser>::BlockSize
Size of the output in bytes.
Source§fn output_size() -> usize
fn output_size() -> usize
Return output size in bytes.
Source§impl<C> Reset for RetailMacCore<C>
impl<C> Reset for RetailMacCore<C>
Source§impl<C> UpdateCore for RetailMacCore<C>
impl<C> UpdateCore for RetailMacCore<C>
Source§fn update_blocks(&mut self, blocks: &[Block<Self>])
fn update_blocks(&mut self, blocks: &[Block<Self>])
Update state using the provided data blocks.
impl<C> MacMarker for RetailMacCore<C>
impl<C> ZeroizeOnDrop for RetailMacCore<C>
Available on crate feature
zeroize only.Auto Trait Implementations§
impl<C> Freeze for RetailMacCore<C>
impl<C> RefUnwindSafe for RetailMacCore<C>where
C: RefUnwindSafe,
<<C as SmallBlockSizeUser>::_BlockSize as ArraySize>::ArrayType<u8>: RefUnwindSafe,
impl<C> Send for RetailMacCore<C>where
C: Send,
impl<C> Sync for RetailMacCore<C>where
C: Sync,
impl<C> Unpin for RetailMacCore<C>
impl<C> UnsafeUnpin for RetailMacCore<C>where
C: UnsafeUnpin,
<<C as SmallBlockSizeUser>::_BlockSize as ArraySize>::ArrayType<u8>: UnsafeUnpin,
impl<C> UnwindSafe for RetailMacCore<C>where
C: UnwindSafe,
<<C as SmallBlockSizeUser>::_BlockSize as ArraySize>::ArrayType<u8>: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SmallBlockSizeUser for T
impl<T> SmallBlockSizeUser for T
Source§type _BlockSize = <T as BlockSizeUser>::BlockSize
type _BlockSize = <T as BlockSizeUser>::BlockSize
Helper associated type equal to
<Self as BlockSizeUser>::BlockSize.