Struct sha2::Sha256VarCore
source · [−]pub struct Sha256VarCore { /* private fields */ }
Expand description
Core block-level SHA-256 hasher with variable output size.
Supports initialization only for 28 and 32 byte output sizes, i.e. 224 and 256 bits respectively.
Trait Implementations
sourceimpl AlgorithmName for Sha256VarCore
impl AlgorithmName for Sha256VarCore
sourcefn write_alg_name(f: &mut Formatter<'_>) -> Result
fn write_alg_name(f: &mut Formatter<'_>) -> Result
Write algorithm name into f
.
sourceimpl BlockSizeUser for Sha256VarCore
impl BlockSizeUser for Sha256VarCore
sourceimpl BufferKindUser for Sha256VarCore
impl BufferKindUser for Sha256VarCore
type BufferKind = Eager
type BufferKind = Eager
Block buffer kind over which type operates.
sourceimpl Clone for Sha256VarCore
impl Clone for Sha256VarCore
sourcefn clone(&self) -> Sha256VarCore
fn clone(&self) -> Sha256VarCore
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 Debug for Sha256VarCore
impl Debug for Sha256VarCore
sourceimpl OutputSizeUser for Sha256VarCore
impl OutputSizeUser for Sha256VarCore
sourceimpl UpdateCore for Sha256VarCore
impl UpdateCore for Sha256VarCore
sourcefn update_blocks(&mut self, blocks: &[Block<Self>])
fn update_blocks(&mut self, blocks: &[Block<Self>])
Update state using the provided data blocks.
sourceimpl VariableOutputCore for Sha256VarCore
impl VariableOutputCore for Sha256VarCore
sourceconst TRUNC_SIDE: TruncSide = TruncSide::Left
const TRUNC_SIDE: TruncSide = TruncSide::Left
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 more
impl HashMarker for Sha256VarCore
Auto Trait Implementations
impl RefUnwindSafe for Sha256VarCore
impl Send for Sha256VarCore
impl Sync for Sha256VarCore
impl Unpin for Sha256VarCore
impl UnwindSafe for Sha256VarCore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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