pub struct CmacCore<C: CmacCipher> { /* private fields */ }Expand description
Generic core CMAC instance, which operates over blocks.
Trait Implementations§
Source§impl<C: CmacCipher + AlgorithmName> AlgorithmName for CmacCore<C>
impl<C: CmacCipher + AlgorithmName> AlgorithmName for CmacCore<C>
Source§impl<C: CmacCipher> BlockSizeUser for CmacCore<C>
impl<C: CmacCipher> BlockSizeUser for CmacCore<C>
Source§impl<C: CmacCipher> BufferKindUser for CmacCore<C>
impl<C: CmacCipher> BufferKindUser for CmacCore<C>
Source§type BufferKind = Lazy
type BufferKind = Lazy
Block buffer kind over which type operates.
Source§impl<C: CmacCipher> Debug for CmacCore<C>
impl<C: CmacCipher> Debug for CmacCore<C>
Source§impl<C: CmacCipher> Drop for CmacCore<C>
impl<C: CmacCipher> Drop for CmacCore<C>
Source§impl<C: CmacCipher> FixedOutputCore for CmacCore<C>
impl<C: CmacCipher> FixedOutputCore for CmacCore<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: CmacCipher> InnerInit for CmacCore<C>
impl<C: CmacCipher> InnerInit for CmacCore<C>
Source§fn inner_init(cipher: C) -> Self
fn inner_init(cipher: C) -> Self
Initialize value from the
inner.Source§impl<C: CmacCipher> OutputSizeUser for CmacCore<C>
impl<C: CmacCipher> OutputSizeUser for CmacCore<C>
Source§type OutputSize = <C as BlockSizeUser>::BlockSize
type OutputSize = <C as BlockSizeUser>::BlockSize
Size of the output in bytes.
§fn output_size() -> usize
fn output_size() -> usize
Return output size in bytes.
Source§impl<C: CmacCipher> Reset for CmacCore<C>
impl<C: CmacCipher> Reset for CmacCore<C>
Source§impl<C: CmacCipher> UpdateCore for CmacCore<C>
impl<C: CmacCipher> UpdateCore for CmacCore<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: CmacCipher> MacMarker for CmacCore<C>
Auto Trait Implementations§
impl<C> Freeze for CmacCore<C>
impl<C> RefUnwindSafe for CmacCore<C>where
C: RefUnwindSafe,
<<C as SmallBlockSizeUser>::_BlockSize as ArraySize>::ArrayType<u8>: RefUnwindSafe,
impl<C> Send for CmacCore<C>where
C: Send,
impl<C> Sync for CmacCore<C>where
C: Sync,
impl<C> Unpin for CmacCore<C>
impl<C> UnsafeUnpin for CmacCore<C>where
C: UnsafeUnpin,
<<C as SmallBlockSizeUser>::_BlockSize as ArraySize>::ArrayType<u8>: UnsafeUnpin,
impl<C> UnwindSafe for CmacCore<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,
§impl<T> KeySizeUser for Twhere
T: InnerUser,
<T as InnerUser>::Inner: KeySizeUser,
impl<T> KeySizeUser for Twhere
T: InnerUser,
<T as InnerUser>::Inner: KeySizeUser,
Source§impl<T> SmallBlockSizeUser for Twhere
T: BlockSizeUser,
<T as BlockSizeUser>::BlockSize: BlockSizes,
impl<T> SmallBlockSizeUser for Twhere
T: BlockSizeUser,
<T as BlockSizeUser>::BlockSize: BlockSizes,
Source§type _BlockSize = <T as BlockSizeUser>::BlockSize
type _BlockSize = <T as BlockSizeUser>::BlockSize
Helper associated type equal to
<Self as BlockSizeUser>::BlockSize.