pub struct Sho { /* private fields */ }
Implementations§
source§impl Sho
impl Sho
pub fn new(label: &[u8], data: &[u8]) -> Self
pub fn absorb_and_ratchet(&mut self, data: &[u8])
pub fn squeeze(&mut self, outlen: usize) -> Vec<u8>
pub fn get_point(&mut self) -> RistrettoPoint
pub fn get_point_single_elligator(&mut self) -> RistrettoPoint
pub fn get_scalar(&mut self) -> Scalar
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sho
impl RefUnwindSafe for Sho
impl Send for Sho
impl Sync for Sho
impl Unpin for Sho
impl UnwindSafe for Sho
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more