pub struct GoldPrfParams256 {
pub p: U256,
pub monty: MontyParams<U256>,
pub g: U256,
}Expand description
Parameters for the Gold (power-residue) PRF: odd divisor g of p-1 and modulus p.
Fields§
§p: U256Prime modulus.
monty: MontyParams<U256>Montgomery parameters for p.
g: U256Gold exponent g | (p-1).
Implementations§
Trait Implementations§
Source§impl Clone for GoldPrfParams256
impl Clone for GoldPrfParams256
Source§fn clone(&self) -> GoldPrfParams256
fn clone(&self) -> GoldPrfParams256
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GoldPrfParams256
impl Debug for GoldPrfParams256
Source§impl PartialEq for GoldPrfParams256
impl PartialEq for GoldPrfParams256
Source§fn eq(&self, other: &GoldPrfParams256) -> bool
fn eq(&self, other: &GoldPrfParams256) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GoldPrfParams256
impl Eq for GoldPrfParams256
impl StructuralPartialEq for GoldPrfParams256
Auto Trait Implementations§
impl Freeze for GoldPrfParams256
impl RefUnwindSafe for GoldPrfParams256
impl Send for GoldPrfParams256
impl Sync for GoldPrfParams256
impl Unpin for GoldPrfParams256
impl UnsafeUnpin for GoldPrfParams256
impl UnwindSafe for GoldPrfParams256
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