pub struct Sha256Builder { /* private fields */ }Expand description
Multi-update SHA-256 builder. Use when the hash semantics require multiple buffers (namespace prefixes, separators, multi-field derivation):
ⓘ
let h = Sha256Builder::new()
.add(b"moonproof:disk-private-state-v1")
.add(&signing_key_bytes)
.add(owner_bytes)
.finalize_hex();Implementations§
Trait Implementations§
Source§impl Debug for Sha256Builder
impl Debug for Sha256Builder
Auto Trait Implementations§
impl Forget for Sha256Builder
impl Freeze for Sha256Builder
impl Move for Sha256Builder
impl RefUnwindSafe for Sha256Builder
impl Send for Sha256Builder
impl Sync for Sha256Builder
impl Unpin for Sha256Builder
impl UnsafeUnpin for Sha256Builderwhere
PhantomData<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>: UnsafeUnpin,
[u8; 64]: UnsafeUnpin,
(): UnsafeUnpin,
impl UnwindSafe for Sha256Builder
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