Struct Sha256VarCore

struct Sha256VarCore { ... }

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.

Implementations

impl AlgorithmName for Sha256VarCore

fn write_alg_name(f: &mut Formatter<'_>) -> Result

impl BlockSizeUser for Sha256VarCore

impl BufferKindUser for Sha256VarCore

impl Clone for Sha256VarCore

fn clone(self: &Self) -> Sha256VarCore

impl Debug for Sha256VarCore

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Freeze for Sha256VarCore

impl HashMarker for Sha256VarCore

impl OutputSizeUser for Sha256VarCore

impl RefUnwindSafe for Sha256VarCore

impl Send for Sha256VarCore

impl Sync for Sha256VarCore

impl Unpin for Sha256VarCore

impl UnsafeUnpin for Sha256VarCore

impl UnwindSafe for Sha256VarCore

impl UpdateCore for Sha256VarCore

fn update_blocks(self: &mut Self, blocks: &[Block<Self>])

impl VariableOutputCore for Sha256VarCore

fn new(output_size: usize) -> Result<Self, InvalidOutputSize>
fn finalize_variable_core(self: &mut Self, buffer: &mut Buffer<Self>, out: &mut Output<Self>)

impl<T> Any for Sha256VarCore

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Sha256VarCore

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Sha256VarCore

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Sha256VarCore

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Sha256VarCore

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Same for Sha256VarCore

impl<T> ToOwned for Sha256VarCore

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Sha256VarCore

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Sha256VarCore

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Sha256VarCore

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>