pub struct Digest(/* private fields */);
Available on crate feature
dnssec-ring
only.Expand description
Hashing wrapper type.
Implementations§
Source§impl Digest
impl Digest
Sourcepub fn iterated(
salt: &[u8],
bytes: &[u8],
type: DigestType,
iterations: u16,
) -> Self
pub fn iterated( salt: &[u8], bytes: &[u8], type: DigestType, iterations: u16, ) -> Self
Hashes the given data
iterations
times with the given salt
and r#type
.
Sourcepub fn from_iter<'a>(
bytes: impl IntoIterator<Item = &'a [u8]>,
type: DigestType,
) -> Self
pub fn from_iter<'a>( bytes: impl IntoIterator<Item = &'a [u8]>, type: DigestType, ) -> Self
Hashes the data from the bytes
iterator with the given r#type
.
Sourcepub fn new(bytes: &[u8], type: DigestType) -> Self
pub fn new(bytes: &[u8], type: DigestType) -> Self
Hashes
Trait Implementations§
impl Copy for Digest
Auto Trait Implementations§
impl Freeze for Digest
impl RefUnwindSafe for Digest
impl Send for Digest
impl Sync for Digest
impl Unpin for Digest
impl UnwindSafe for Digest
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