pub struct Fp4ConfigWrapper<P>(/* private fields */)
where
P: Fp4Config;
Trait Implementations§
Source§impl<P> QuadExtConfig for Fp4ConfigWrapper<P>where
P: Fp4Config,
impl<P> QuadExtConfig for Fp4ConfigWrapper<P>where
P: Fp4Config,
Source§const DEGREE_OVER_BASE_PRIME_FIELD: usize = 4usize
const DEGREE_OVER_BASE_PRIME_FIELD: usize = 4usize
The degree of the extension over the base prime field.
Source§const NONRESIDUE: <Fp4ConfigWrapper<P> as QuadExtConfig>::BaseField = P::NONRESIDUE
const NONRESIDUE: <Fp4ConfigWrapper<P> as QuadExtConfig>::BaseField = P::NONRESIDUE
The quadratic non-residue used to construct the extension.
Source§const FROBENIUS_COEFF_C1: &'static [<Fp4ConfigWrapper<P> as QuadExtConfig>::FrobCoeff] = P::FROBENIUS_COEFF_FP4_C1
const FROBENIUS_COEFF_C1: &'static [<Fp4ConfigWrapper<P> as QuadExtConfig>::FrobCoeff] = P::FROBENIUS_COEFF_FP4_C1
Coefficients for the Frobenius automorphism.
Source§type BasePrimeField = <<P as Fp4Config>::Fp2Config as Fp2Config>::Fp
type BasePrimeField = <<P as Fp4Config>::Fp2Config as Fp2Config>::Fp
The prime field that this quadratic extension is eventually an extension of.
Source§type BaseField = QuadExtField<Fp2ConfigWrapper<<P as Fp4Config>::Fp2Config>>
type BaseField = QuadExtField<Fp2ConfigWrapper<<P as Fp4Config>::Fp2Config>>
The base field that this field is a quadratic extension of. Read more
Source§type FrobCoeff = <Fp4ConfigWrapper<P> as QuadExtConfig>::BasePrimeField
type FrobCoeff = <Fp4ConfigWrapper<P> as QuadExtConfig>::BasePrimeField
The type of the coefficients for an efficient implementation of the
Frobenius endomorphism.
Source§fn mul_base_field_by_nonresidue_in_place(
fe: &mut <Fp4ConfigWrapper<P> as QuadExtConfig>::BaseField,
) -> &mut <Fp4ConfigWrapper<P> as QuadExtConfig>::BaseField
fn mul_base_field_by_nonresidue_in_place( fe: &mut <Fp4ConfigWrapper<P> as QuadExtConfig>::BaseField, ) -> &mut <Fp4ConfigWrapper<P> as QuadExtConfig>::BaseField
A specializable method for multiplying an element of the base field by
the quadratic non-residue. This is used in Karatsuba multiplication
and in complex squaring.
Source§fn mul_base_field_by_frob_coeff(
fe: &mut <Fp4ConfigWrapper<P> as QuadExtConfig>::BaseField,
power: usize,
)
fn mul_base_field_by_frob_coeff( fe: &mut <Fp4ConfigWrapper<P> as QuadExtConfig>::BaseField, power: usize, )
A specializable method for multiplying an element of the base field by
the appropriate Frobenius coefficient.
Source§fn mul_base_field_by_nonresidue_and_add(
y: &mut Self::BaseField,
x: &Self::BaseField,
)
fn mul_base_field_by_nonresidue_and_add( y: &mut Self::BaseField, x: &Self::BaseField, )
A specializable method for setting
y = x + NONRESIDUE * y
.
This allows for optimizations when the non-residue is
canonically negative in the field.Source§fn mul_base_field_by_nonresidue_plus_one_and_add(
y: &mut Self::BaseField,
x: &Self::BaseField,
)
fn mul_base_field_by_nonresidue_plus_one_and_add( y: &mut Self::BaseField, x: &Self::BaseField, )
A specializable method for computing x + mul_base_field_by_nonresidue(y) + y
This allows for optimizations when the non-residue is not -1.
Source§fn sub_and_mul_base_field_by_nonresidue(
y: &mut Self::BaseField,
x: &Self::BaseField,
)
fn sub_and_mul_base_field_by_nonresidue( y: &mut Self::BaseField, x: &Self::BaseField, )
A specializable method for computing x - mul_base_field_by_nonresidue(y)
This allows for optimizations when the non-residue is
canonically negative in the field.
Auto Trait Implementations§
impl<P> Freeze for Fp4ConfigWrapper<P>
impl<P> RefUnwindSafe for Fp4ConfigWrapper<P>where
P: RefUnwindSafe,
impl<P> Send for Fp4ConfigWrapper<P>
impl<P> Sync for Fp4ConfigWrapper<P>
impl<P> Unpin for Fp4ConfigWrapper<P>where
P: Unpin,
impl<P> UnwindSafe for Fp4ConfigWrapper<P>where
P: UnwindSafe,
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