pub struct Bn256RescueParams { /* private fields */ }
Implementations§
Source§impl Bn256RescueParams
impl Bn256RescueParams
pub fn new_checked_2_into_1() -> Self
pub fn new_2_into_1<H: GroupHasher>() -> Self
pub fn new_3_into_1<H: GroupHasher>() -> Self
pub fn new_for_params<H: GroupHasher>( c: u32, r: u32, rounds: u32, _security_level: u32, ) -> Self
pub fn set_allow_custom_gate(&mut self, allowed: bool)
Trait Implementations§
Source§impl Clone for Bn256RescueParams
impl Clone for Bn256RescueParams
Source§fn clone(&self) -> Bn256RescueParams
fn clone(&self) -> Bn256RescueParams
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 moreSource§impl Debug for Bn256RescueParams
impl Debug for Bn256RescueParams
Source§impl PartialEq for Bn256RescueParams
impl PartialEq for Bn256RescueParams
Source§impl RescueHashParams<Bn256> for Bn256RescueParams
impl RescueHashParams<Bn256> for Bn256RescueParams
type SBox0 = PowerSBox<Bn256>
type SBox1 = QuinticSBox<Bn256>
fn capacity(&self) -> u32
fn rate(&self) -> u32
fn num_rounds(&self) -> u32
fn round_constants(&self, round: u32) -> &[Fr]
fn mds_matrix_row(&self, row: u32) -> &[Fr]
fn security_level(&self) -> u32
fn output_len(&self) -> u32
fn absorbtion_cycle_len(&self) -> u32
fn compression_rate(&self) -> u32
fn sbox_0(&self) -> &Self::SBox0
fn sbox_1(&self) -> &Self::SBox1
fn can_use_custom_gates(&self) -> bool
fn state_width(&self) -> u32
Source§impl RescueParamsInternal<Bn256> for Bn256RescueParams
impl RescueParamsInternal<Bn256> for Bn256RescueParams
fn set_round_constants(&mut self, to: Vec<Fr>)
impl Eq for Bn256RescueParams
impl StructuralPartialEq for Bn256RescueParams
Auto Trait Implementations§
impl Freeze for Bn256RescueParams
impl RefUnwindSafe for Bn256RescueParams
impl Send for Bn256RescueParams
impl Sync for Bn256RescueParams
impl Unpin for Bn256RescueParams
impl UnwindSafe for Bn256RescueParams
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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