pub struct DuplexSponge { /* private fields */ }Implementations§
Source§impl DuplexSponge
impl DuplexSponge
pub fn new(initialization_vector: &[u8; 32]) -> Self
pub fn absorb(&mut self, data: &[u8])
pub fn squeeze(&mut self, output_len: usize) -> Vec<u8> ⓘ
pub fn prover_message(&mut self, commitment: &[u8]) -> &mut Self
pub fn verifier_challenge(&mut self, challenge_len: usize) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for DuplexSponge
impl Clone for DuplexSponge
Source§fn clone(&self) -> DuplexSponge
fn clone(&self) -> DuplexSponge
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DuplexSponge
impl RefUnwindSafe for DuplexSponge
impl Send for DuplexSponge
impl Sync for DuplexSponge
impl Unpin for DuplexSponge
impl UnwindSafe for DuplexSponge
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