pub struct Digest(/* private fields */);
Available on crate features
dnssec-aws-lc-rs
or 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,
) -> Result<Self, ProtoError>
pub fn iterated( salt: &[u8], bytes: &[u8], type: DigestType, iterations: u16, ) -> Result<Self, ProtoError>
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,
) -> Result<Self, ProtoError>
pub fn from_iter<'a>( bytes: impl IntoIterator<Item = &'a [u8]>, type: DigestType, ) -> Result<Self, ProtoError>
Hashes the data from the bytes
iterator with the given r#type
.
Sourcepub fn new(bytes: &[u8], type: DigestType) -> Result<Self, ProtoError>
pub fn new(bytes: &[u8], type: DigestType) -> Result<Self, ProtoError>
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