Type Alias sha2::Sha224

source ·
pub type Sha224 = CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, U28, OidSha224>>;
Expand description

SHA-224 hasher.

Aliased Type§

struct Sha224 { /* private fields */ }

Implementations

source§

impl<T> CoreWrapper<T>

source

pub fn from_core(core: T) -> CoreWrapper<T>

Create new wrapper from core.

source

pub fn decompose( self, ) -> (T, BlockBuffer<<T as BlockSizeUser>::BlockSize, <T as BufferKindUser>::BufferKind>)

Decompose wrapper into inner parts.

Trait Implementations

source§

impl<T> BlockSizeUser for CoreWrapper<T>

§

type BlockSize = <T as BlockSizeUser>::BlockSize

Size of the block in bytes.
source§

fn block_size() -> usize

Return block size in bytes.
source§

impl<T> Clone for CoreWrapper<T>

source§

fn clone(&self) -> CoreWrapper<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> CoreProxy for CoreWrapper<T>

§

type Core = T

Type wrapped by CoreWrapper.
source§

impl<T> Debug for CoreWrapper<T>

source§

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

Formats the value using the given formatter. Read more
source§

impl<T> Default for CoreWrapper<T>

source§

fn default() -> CoreWrapper<T>

Returns the “default value” for a type. Read more
source§

impl<T> ExtendableOutput for CoreWrapper<T>

§

type Reader = XofReaderCoreWrapper<<T as ExtendableOutputCore>::ReaderCore>

Reader
source§

fn finalize_xof(self) -> <CoreWrapper<T> as ExtendableOutput>::Reader

Retrieve XOF reader and consume hasher instance.
source§

fn finalize_xof_into(self, out: &mut [u8])

Finalize XOF and write result into out.
source§

fn finalize_boxed(self, output_size: usize) -> Box<[u8]>

Retrieve result into a boxed slice of the specified size and consume the hasher. Read more
source§

impl<T> ExtendableOutputReset for CoreWrapper<T>

source§

fn finalize_xof_reset(&mut self) -> <CoreWrapper<T> as ExtendableOutput>::Reader

Retrieve XOF reader and reset hasher instance state.
source§

fn finalize_xof_reset_into(&mut self, out: &mut [u8])

Finalize XOF, write result into out, and reset the hasher state.
source§

fn finalize_boxed_reset(&mut self, output_size: usize) -> Box<[u8]>

Retrieve result into a boxed slice of the specified size and reset the hasher state. Read more
source§

impl<T> FixedOutput for CoreWrapper<T>

source§

fn finalize_into( self, out: &mut GenericArray<u8, <CoreWrapper<T> as OutputSizeUser>::OutputSize>, )

Consume value and write result into provided array.
source§

fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>

Retrieve result and consume the hasher instance.
source§

impl<T> FixedOutputReset for CoreWrapper<T>

source§

fn finalize_into_reset( &mut self, out: &mut GenericArray<u8, <CoreWrapper<T> as OutputSizeUser>::OutputSize>, )

Write result into provided array and reset the hasher state.
source§

fn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize>

Retrieve result and reset the hasher state.
source§

impl<T> KeyInit for CoreWrapper<T>

source§

fn new( key: &GenericArray<u8, <CoreWrapper<T> as KeySizeUser>::KeySize>, ) -> CoreWrapper<T>

Create new value from fixed size key.
source§

fn new_from_slice(key: &[u8]) -> Result<CoreWrapper<T>, InvalidLength>

Create new value from variable size key.
source§

impl<T> KeySizeUser for CoreWrapper<T>

§

type KeySize = <T as KeySizeUser>::KeySize

Key size in bytes.
source§

fn key_size() -> usize

Return key size in bytes.
source§

impl<T> OutputSizeUser for CoreWrapper<T>

§

type OutputSize = <T as OutputSizeUser>::OutputSize

Size of the output in bytes.
source§

fn output_size() -> usize

Return output size in bytes.
source§

impl<T> Reset for CoreWrapper<T>

source§

fn reset(&mut self)

Reset state to its initial value.
source§

impl<T> Update for CoreWrapper<T>

source§

fn update(&mut self, input: &[u8])

Update state using the provided data.
source§

fn chain(self, data: impl AsRef<[u8]>) -> Self
where Self: Sized,

Digest input data in a chained manner.
source§

impl<T> Write for CoreWrapper<T>

source§

fn write(&mut self, buf: &[u8]) -> Result<usize, Error>

Write a buffer into this writer, returning how many bytes were written. Read more
source§

fn flush(&mut self) -> Result<(), Error>

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
1.36.0 · source§

fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>

Like write, except that it writes from a slice of buffers. Read more
source§

fn is_write_vectored(&self) -> bool

🔬This is a nightly-only experimental API. (can_vector)
Determines if this Writer has an efficient write_vectored implementation. Read more
1.0.0 · source§

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

Attempts to write an entire buffer into this writer. Read more
source§

fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>

🔬This is a nightly-only experimental API. (write_all_vectored)
Attempts to write multiple buffers into this writer. Read more
1.0.0 · source§

fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>

Writes a formatted string into this writer, returning any error encountered. Read more
1.0.0 · source§

fn by_ref(&mut self) -> &mut Self
where Self: Sized,

Creates a “by reference” adapter for this instance of Write. Read more
source§

impl<T> HashMarker for CoreWrapper<T>

source§

impl<T> MacMarker for CoreWrapper<T>