pub struct Fp3ConfigWrapper<P: Fp3Config>(_);
Expand description
Wrapper for Fp3Config
, allowing combination of the Fp3Config
and CubicExtConfig
traits.
Trait Implementations§
source§impl<P: Fp3Config> CubicExtConfig for Fp3ConfigWrapper<P>
impl<P: Fp3Config> CubicExtConfig for Fp3ConfigWrapper<P>
§type BasePrimeField = <P as Fp3Config>::Fp
type BasePrimeField = <P as Fp3Config>::Fp
The prime field that this cubic extension is eventually an extension of.
§type BaseField = <P as Fp3Config>::Fp
type BaseField = <P as Fp3Config>::Fp
The base field that this field is a cubic extension of. Read more
§type FrobCoeff = <P as Fp3Config>::Fp
type FrobCoeff = <P as Fp3Config>::Fp
The type of the coefficients for an efficient implementation of the
Frobenius endomorphism.
source§const DEGREE_OVER_BASE_PRIME_FIELD: usize = 3usize
const DEGREE_OVER_BASE_PRIME_FIELD: usize = 3usize
The degree of the extension over the base prime field.
source§const NONRESIDUE: Self::BaseField = P::NONRESIDUE
const NONRESIDUE: Self::BaseField = P::NONRESIDUE
The cubic non-residue used to construct the extension.
source§const SQRT_PRECOMP: Option<SqrtPrecomputation<CubicExtField<Self>>> = _
const SQRT_PRECOMP: Option<SqrtPrecomputation<CubicExtField<Self>>> = _
Determines the algorithm for computing square roots.
source§const FROBENIUS_COEFF_C1: &'static [Self::FrobCoeff] = P::FROBENIUS_COEFF_FP3_C1
const FROBENIUS_COEFF_C1: &'static [Self::FrobCoeff] = P::FROBENIUS_COEFF_FP3_C1
Coefficients for the Frobenius automorphism.
const FROBENIUS_COEFF_C2: &'static [Self::FrobCoeff] = P::FROBENIUS_COEFF_FP3_C2
source§fn mul_base_field_by_nonresidue_in_place(
fe: &mut Self::BaseField
) -> &mut Self::BaseField
fn mul_base_field_by_nonresidue_in_place( fe: &mut Self::BaseField ) -> &mut Self::BaseField
A specializable method for multiplying an element of the base field by
the quadratic non-residue. This is used in multiplication and squaring.
source§fn mul_base_field_by_frob_coeff(
c1: &mut Self::BaseField,
c2: &mut Self::BaseField,
power: usize
)
fn mul_base_field_by_frob_coeff( c1: &mut Self::BaseField, c2: &mut Self::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(fe: Self::BaseField) -> Self::BaseField
fn mul_base_field_by_nonresidue(fe: Self::BaseField) -> Self::BaseField
A defaulted method for multiplying an element of the base field by
the quadratic non-residue. This is used in multiplication and squaring.