pub struct HmacCore<D: EagerHash> { /* private fields */ }
Expand description
Generic core HMAC instance, which operates over blocks.
Trait Implementations§
source§impl<D: EagerHash> AlgorithmName for HmacCore<D>where
D::Core: AlgorithmName,
impl<D: EagerHash> AlgorithmName for HmacCore<D>where
D::Core: AlgorithmName,
source§fn write_alg_name(f: &mut Formatter<'_>) -> Result
fn write_alg_name(f: &mut Formatter<'_>) -> Result
Write algorithm name into
f
.source§impl<D: EagerHash> BufferKindUser for HmacCore<D>
impl<D: EagerHash> BufferKindUser for HmacCore<D>
§type BufferKind = Eager
type BufferKind = Eager
Block buffer kind over which type operates.
source§impl<D: EagerHash> FixedOutputCore for HmacCore<D>
impl<D: EagerHash> FixedOutputCore for HmacCore<D>
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<D: EagerHash> OutputSizeUser for HmacCore<D>
impl<D: EagerHash> OutputSizeUser for HmacCore<D>
§type OutputSize = <<D as EagerHash>::Core as OutputSizeUser>::OutputSize
type OutputSize = <<D as EagerHash>::Core as OutputSizeUser>::OutputSize
Size of the output in bytes.
§fn output_size() -> usize
fn output_size() -> usize
Return output size in bytes.
source§impl<D: EagerHash> UpdateCore for HmacCore<D>
impl<D: EagerHash> UpdateCore for HmacCore<D>
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<D: EagerHash> MacMarker for HmacCore<D>
Auto Trait Implementations§
impl<D> RefUnwindSafe for HmacCore<D>
impl<D> Send for HmacCore<D>
impl<D> Sync for HmacCore<D>
impl<D> Unpin for HmacCore<D>
impl<D> UnwindSafe for HmacCore<D>
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