pub struct StatefulRescue<'a, E: RescueEngine> {
pub params: &'a E::Params,
pub internal_state: Vec<E::Fr>,
pub mode: RescueOpMode<E>,
}
Fields§
§params: &'a E::Params
§internal_state: Vec<E::Fr>
§mode: RescueOpMode<E>
Implementations§
Source§impl<'a, E: RescueEngine> StatefulRescue<'a, E>
impl<'a, E: RescueEngine> StatefulRescue<'a, E>
pub fn new(params: &'a E::Params) -> Self
pub fn specialize(&mut self, dst: u8)
pub fn absorb_single_value(&mut self, value: E::Fr)
pub fn absorb(&mut self, input: &[E::Fr])
pub fn pad_if_necessary(&mut self)
pub fn squeeze_out_single(&mut self) -> E::Fr
Trait Implementations§
Source§impl<'a, E: Clone + RescueEngine> Clone for StatefulRescue<'a, E>
impl<'a, E: Clone + RescueEngine> Clone for StatefulRescue<'a, E>
Source§fn clone(&self) -> StatefulRescue<'a, E>
fn clone(&self) -> StatefulRescue<'a, E>
Returns a copy 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<'a, E> Freeze for StatefulRescue<'a, E>
impl<'a, E> RefUnwindSafe for StatefulRescue<'a, E>
impl<'a, E> Send for StatefulRescue<'a, E>
impl<'a, E> Sync for StatefulRescue<'a, E>
impl<'a, E> Unpin for StatefulRescue<'a, E>
impl<'a, E> UnwindSafe for StatefulRescue<'a, E>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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