Struct cbc_mac::CbcMacCore
source · [−]pub struct CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone, { /* private fields */ }
Expand description
Generic core CMAC instance, which operates over blocks.
Trait Implementations
sourceimpl<C> AlgorithmName for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone + AlgorithmName,
impl<C> AlgorithmName for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone + AlgorithmName,
sourcefn write_alg_name(f: &mut Formatter<'_>) -> Result
fn write_alg_name(f: &mut Formatter<'_>) -> Result
Write algorithm name into f
.
sourceimpl<C> BlockSizeUser for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
impl<C> BlockSizeUser for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
sourcefn block_size() -> usize
fn block_size() -> usize
Return block size in bytes.
sourceimpl<C> BufferKindUser for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
impl<C> BufferKindUser for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
type BufferKind = Eager
type BufferKind = Eager
Block buffer kind over which type operates.
sourceimpl<C: Clone> Clone for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
impl<C: Clone> Clone for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
sourcefn clone(&self) -> CbcMacCore<C>
fn clone(&self) -> CbcMacCore<C>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<C> Debug for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone + AlgorithmName,
impl<C> Debug for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone + AlgorithmName,
sourceimpl<C> Drop for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
This is supported on crate feature zeroize
only.
impl<C> Drop for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
zeroize
only.sourceimpl<C> FixedOutputCore for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
C::BlockSize: IsLess<U256>,
Le<C::BlockSize, U256>: NonZero,
impl<C> FixedOutputCore for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
C::BlockSize: IsLess<U256>,
Le<C::BlockSize, U256>: NonZero,
sourcefn 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. Read more
sourceimpl<C> InnerInit for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
impl<C> InnerInit for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
sourcefn inner_init(cipher: C) -> Self
fn inner_init(cipher: C) -> Self
Initialize value from the inner
.
sourceimpl<C> InnerUser for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
impl<C> InnerUser for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
type Inner = C
type Inner = C
Inner type.
sourceimpl<C> OutputSizeUser for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
impl<C> OutputSizeUser for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
type OutputSize = C::BlockSize
type OutputSize = C::BlockSize
Size of the output in bytes.
sourcefn output_size() -> usize
fn output_size() -> usize
Return output size in bytes.
sourceimpl<C> Reset for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
impl<C> Reset for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
sourceimpl<C> UpdateCore for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
impl<C> UpdateCore for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
sourcefn 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 CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone,
impl<C> ZeroizeOnDrop for CbcMacCore<C> where
C: BlockCipher + BlockEncryptMut + Clone + ZeroizeOnDrop,
zeroize
only.Auto Trait Implementations
impl<C> RefUnwindSafe for CbcMacCore<C> where
C: RefUnwindSafe,
<<C as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<C> Send for CbcMacCore<C> where
C: Send,
impl<C> Sync for CbcMacCore<C> where
C: Sync,
impl<C> Unpin for CbcMacCore<C> where
C: Unpin,
<<C as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<C> UnwindSafe for CbcMacCore<C> where
C: UnwindSafe,
<<C as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> KeyInit for T where
T: InnerInit,
<T as InnerUser>::Inner: KeyInit,
impl<T> KeyInit for T where
T: InnerInit,
<T as InnerUser>::Inner: KeyInit,
sourcepub fn new(key: &GenericArray<u8, <T as KeySizeUser>::KeySize>) -> T
pub fn new(key: &GenericArray<u8, <T as KeySizeUser>::KeySize>) -> T
Create new value from fixed size key.
sourcepub fn new_from_slice(key: &[u8]) -> Result<T, InvalidLength>
pub fn new_from_slice(key: &[u8]) -> Result<T, InvalidLength>
Create new value from variable size key.
sourceimpl<T> KeySizeUser for T where
T: InnerUser,
<T as InnerUser>::Inner: KeySizeUser,
impl<T> KeySizeUser for T where
T: InnerUser,
<T as InnerUser>::Inner: KeySizeUser,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more