pub struct CmacCore<C>{ /* private fields */ }
Expand description
Generic core CMAC instance, which operates over blocks.
Trait Implementations§
Source§impl<C> AlgorithmName for CmacCore<C>
impl<C> AlgorithmName for CmacCore<C>
Source§fn write_alg_name(f: &mut Formatter<'_>) -> Result
fn write_alg_name(f: &mut Formatter<'_>) -> Result
Write algorithm name into
f
.Source§impl<C> BufferKindUser for CmacCore<C>
impl<C> BufferKindUser for CmacCore<C>
Source§type BufferKind = Lazy
type BufferKind = Lazy
Block buffer kind over which type operates.
Source§impl<C> FixedOutputCore for CmacCore<C>where
C: BlockCipher + BlockEncryptMut + Clone,
Block<C>: Dbl,
C::BlockSize: IsLess<U256>,
Le<C::BlockSize, U256>: NonZero,
impl<C> FixedOutputCore for CmacCore<C>where
C: BlockCipher + BlockEncryptMut + Clone,
Block<C>: Dbl,
C::BlockSize: IsLess<U256>,
Le<C::BlockSize, U256>: NonZero,
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> InnerInit for CmacCore<C>
impl<C> 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> OutputSizeUser for CmacCore<C>
impl<C> 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> UpdateCore for CmacCore<C>
impl<C> 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> MacMarker for CmacCore<C>
Auto Trait Implementations§
impl<C> Freeze for CmacCore<C>
impl<C> RefUnwindSafe for CmacCore<C>where
C: RefUnwindSafe,
<<C as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: 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> UnwindSafe for CmacCore<C>
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