pub struct Md5 { /* private fields */ }
Expand description
The MD5 hasher
Trait Implementations§
source§impl FixedOutputDirty for Md5
impl FixedOutputDirty for Md5
source§impl Write for Md5
impl Write for Md5
source§fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
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>
fn flush(&mut self) -> Result<(), Error>
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector
)1.0.0 · source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
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>
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
impl Digest for Md5
Auto Trait Implementations§
impl RefUnwindSafe for Md5
impl Send for Md5
impl Sync for Md5
impl Unpin for Md5
impl UnwindSafe for Md5
Blanket Implementations§
§impl<D> Digest for Dwhere
D: Update + FixedOutput + Reset + Clone + Default,
impl<D> Digest for Dwhere D: Update + FixedOutput + Reset + Clone + Default,
§type OutputSize = <D as FixedOutput>::OutputSize
type OutputSize = <D as FixedOutput>::OutputSize
Output size for
Digest
§fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
Retrieve result and consume hasher instance.
§fn finalize_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>
fn finalize_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>
Retrieve result and reset hasher instance. Read more
§fn output_size() -> usize
fn output_size() -> usize
Get output size of the hasher
§impl<D> DynDigest for Dwhere
D: Update + FixedOutput + Reset + Clone + 'static,
impl<D> DynDigest for Dwhere D: Update + FixedOutput + Reset + Clone + 'static,
§impl<D> FixedOutput for Dwhere
D: FixedOutputDirty + Reset,
impl<D> FixedOutput for Dwhere D: FixedOutputDirty + Reset,
§type OutputSize = <D as FixedOutputDirty>::OutputSize
type OutputSize = <D as FixedOutputDirty>::OutputSize
Output size for fixed output digest
§fn finalize_into(
self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
fn finalize_into( self, out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize> )
Write result into provided array and consume the hasher instance.
§fn finalize_into_reset(
&mut self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
fn finalize_into_reset( &mut self, out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize> )
Write result into provided array and reset the hasher instance.
§fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>where
Self: Sized,
fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>where Self: Sized,
Retrieve result and consume the hasher instance.
§fn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize>
fn finalize_fixed_reset(&mut self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and reset the hasher instance.