Struct streebog::StreebogVarCore
source · [−]pub struct StreebogVarCore { /* private fields */ }
Expand description
Core block-level Streebog hasher with variable output size.
Supports initialization only for 32 and 64 byte output sizes, i.e. 256 and 512 bits respectively.
Trait Implementations
sourceimpl AlgorithmName for StreebogVarCore
impl AlgorithmName for StreebogVarCore
sourcefn write_alg_name(f: &mut Formatter<'_>) -> Result
fn write_alg_name(f: &mut Formatter<'_>) -> Result
Write algorithm name into
f
.sourceimpl BlockSizeUser for StreebogVarCore
impl BlockSizeUser for StreebogVarCore
sourceimpl BufferKindUser for StreebogVarCore
impl BufferKindUser for StreebogVarCore
type BufferKind = Eager
type BufferKind = Eager
Block buffer kind over which type operates.
sourceimpl Clone for StreebogVarCore
impl Clone for StreebogVarCore
sourcefn clone(&self) -> StreebogVarCore
fn clone(&self) -> StreebogVarCore
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 moresourceimpl Debug for StreebogVarCore
impl Debug for StreebogVarCore
sourceimpl OutputSizeUser for StreebogVarCore
impl OutputSizeUser for StreebogVarCore
sourceimpl UpdateCore for StreebogVarCore
impl UpdateCore for StreebogVarCore
sourcefn update_blocks(&mut self, blocks: &[GenBlock<Self>])
fn update_blocks(&mut self, blocks: &[GenBlock<Self>])
Update state using the provided data blocks.
sourceimpl VariableOutputCore for StreebogVarCore
impl VariableOutputCore for StreebogVarCore
sourceconst TRUNC_SIDE: TruncSide = TruncSide::Right
const TRUNC_SIDE: TruncSide = TruncSide::Right
Side which should be used in a truncated result.
sourcefn new(output_size: usize) -> Result<Self, InvalidOutputSize>
fn new(output_size: usize) -> Result<Self, InvalidOutputSize>
Initialize hasher state for given output size. Read more
sourcefn finalize_variable_core(
&mut self,
buffer: &mut Buffer<Self>,
out: &mut Output<Self>
)
fn finalize_variable_core(
&mut self,
buffer: &mut Buffer<Self>,
out: &mut Output<Self>
)
Finalize hasher and write full hashing result into the
out
buffer. Read moreimpl HashMarker for StreebogVarCore
Auto Trait Implementations
impl RefUnwindSafe for StreebogVarCore
impl Send for StreebogVarCore
impl Sync for StreebogVarCore
impl Unpin for StreebogVarCore
impl UnwindSafe for StreebogVarCore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more