pub struct ProtectedDigest<D, InputScope = DefaultScope>(/* private fields */);Implementations§
Source§impl<D: Digest, InputScope: Scope> ProtectedDigest<D, InputScope>
impl<D: Digest, InputScope: Scope> ProtectedDigest<D, InputScope>
pub fn new() -> Self
pub fn new_with_prefix<T>(data: &T) -> Self
pub fn update<T>(&mut self, data: &T)
pub fn finalize<T>(self) -> T
pub fn finalize_into<'m, T>(self, out: &'m mut T)
pub fn finalize_reset<T>(&mut self) -> T
pub fn finalize_into_reset<'m, T>(&'m mut self, out: &'m mut T)where
D: FixedOutputReset,
T: Controlled,
&'m mut Array<u8, <D as OutputSizeUser>::OutputSize>: From<&'m mut T::Inner>,
pub fn reset(&mut self)where
D: Reset,
pub fn output_size() -> usize
pub fn digest<T, O>(data: &T) -> Owhere
T: Controlled + Acceptable<InputScope>,
T::Inner: AsRef<[u8]>,
O: Controlled + From<Array<u8, <D as OutputSizeUser>::OutputSize>>,
Trait Implementations§
Auto Trait Implementations§
impl<D, InputScope> Freeze for ProtectedDigest<D, InputScope>where
D: Freeze,
impl<D, InputScope> RefUnwindSafe for ProtectedDigest<D, InputScope>where
D: RefUnwindSafe,
InputScope: RefUnwindSafe,
impl<D, InputScope> Send for ProtectedDigest<D, InputScope>
impl<D, InputScope> Sync for ProtectedDigest<D, InputScope>
impl<D, InputScope> Unpin for ProtectedDigest<D, InputScope>
impl<D, InputScope> UnsafeUnpin for ProtectedDigest<D, InputScope>where
D: UnsafeUnpin,
impl<D, InputScope> UnwindSafe for ProtectedDigest<D, InputScope>where
D: UnwindSafe,
InputScope: UnwindSafe,
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