pub struct Md5 { /* private fields */ }
Expand description
The MD5 hasher
Trait Implementations§
Source§impl BlockInput for Md5
impl BlockInput for Md5
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>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flushes 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
Auto Trait Implementations§
impl Freeze for Md5
impl RefUnwindSafe for Md5
impl Send for Md5
impl Sync for Md5
impl Unpin for Md5
impl UnwindSafe for Md5
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D> Digest for D
impl<D> Digest for D
Source§type OutputSize = <D as FixedOutput>::OutputSize
type OutputSize = <D as FixedOutput>::OutputSize
Output size for
Digest
Source§fn update(&mut self, data: impl AsRef<[u8]>)
fn update(&mut self, data: impl AsRef<[u8]>)
Digest data, updating the internal state. Read more
Source§fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
Retrieve result and consume hasher instance.
Source§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
Source§fn output_size() -> usize
fn output_size() -> usize
Get output size of the hasher
Source§fn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>
fn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>
Convenience function to compute hash of the
data
. It will handle
hasher creation, data feeding and finalization. Read moreSource§impl<D> DynDigest for D
impl<D> DynDigest for D
Source§fn finalize_reset(&mut self) -> Box<[u8]>
fn finalize_reset(&mut self) -> Box<[u8]>
Retrieve result and reset hasher instance
Source§fn output_size(&self) -> usize
fn output_size(&self) -> usize
Get output size of the hasher
Source§impl<D> FixedOutput for Dwhere
D: FixedOutputDirty + Reset,
impl<D> FixedOutput for Dwhere
D: FixedOutputDirty + Reset,
Source§type OutputSize = <D as FixedOutputDirty>::OutputSize
type OutputSize = <D as FixedOutputDirty>::OutputSize
Output size for fixed output digest
Source§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.
Source§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.
Source§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.
Source§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.