pub struct BabyBear;
Expand description
Definition of this field for operations that operate on the baby bear field and its 4th degree extension.
Trait Implementations§
source§impl<T: Blake2b> Rng<BabyBear> for Blake2bRng<T>
impl<T: Blake2b> Rng<BabyBear> for Blake2bRng<T>
source§fn random_bits(&mut self, bits: usize) -> u32
fn random_bits(&mut self, bits: usize) -> u32
Get a cryptographically uniform set of bits, as the low order bits of a
u32
source§fn random_elem(&mut self) -> BabyBearElem
fn random_elem(&mut self) -> BabyBearElem
Get a cryptographically uniform field element
source§fn random_ext_elem(&mut self) -> BabyBearExtElem
fn random_ext_elem(&mut self) -> BabyBearExtElem
Get a cryptographically uniform extension field element
source§impl Rng<BabyBear> for Poseidon2Rng
impl Rng<BabyBear> for Poseidon2Rng
source§fn random_bits(&mut self, bits: usize) -> u32
fn random_bits(&mut self, bits: usize) -> u32
Get a cryptographically uniform set of bits, as the low order bits of a
u32
source§fn random_elem(&mut self) -> Elem
fn random_elem(&mut self) -> Elem
Get a cryptographically uniform field element
source§fn random_ext_elem(&mut self) -> BabyBearExtElem
fn random_ext_elem(&mut self) -> BabyBearExtElem
Get a cryptographically uniform extension field element
source§impl Rng<BabyBear> for PoseidonRng
impl Rng<BabyBear> for PoseidonRng
source§fn random_bits(&mut self, bits: usize) -> u32
fn random_bits(&mut self, bits: usize) -> u32
Get a cryptographically uniform set of bits, as the low order bits of a
u32
source§fn random_elem(&mut self) -> Elem
fn random_elem(&mut self) -> Elem
Get a cryptographically uniform field element
source§fn random_ext_elem(&mut self) -> BabyBearExtElem
fn random_ext_elem(&mut self) -> BabyBearExtElem
Get a cryptographically uniform extension field element
Auto Trait Implementations§
impl RefUnwindSafe for BabyBear
impl Send for BabyBear
impl Sync for BabyBear
impl Unpin for BabyBear
impl UnwindSafe for BabyBear
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