pub struct Curl { /* private fields */ }
Implementations§
Source§impl Curl
impl Curl
Sourcepub fn squeeze(&mut self, out: &mut [i8])
pub fn squeeze(&mut self, out: &mut [i8])
Squeeze trits out of the sponge and copy them into out
Sourcepub fn digest(&mut self, input: &[i8], output: &mut [i8])
pub fn digest(&mut self, input: &[i8], output: &mut [i8])
Digest inputs and then compute the hash with length of provided output slice
pub fn new(rounds: usize) -> Curl
pub fn state(&self) -> &[i8]
Trait Implementations§
impl Copy for Curl
Auto Trait Implementations§
impl Freeze for Curl
impl RefUnwindSafe for Curl
impl Send for Curl
impl Sync for Curl
impl Unpin for Curl
impl UnwindSafe for Curl
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