pub struct Fq2Config;

Trait Implementations§

source§

impl Fp2Config for Fq2Config

source§

const NONRESIDUE: Fp<MontBackend<FqConfig, 6>, 6> = _

NONRESIDUE = -1

source§

const FROBENIUS_COEFF_FP2_C1: &'static [Fp<MontBackend<FqConfig, 6>, 6>] = _

Coefficients for the Frobenius automorphism.

§

type Fp = Fp<MontBackend<FqConfig, 6>, 6>

Base prime field underlying this extension.
source§

fn mul_fp_by_nonresidue_in_place( fp: &mut <Fq2Config as Fp2Config>::Fp ) -> &mut <Fq2Config as Fp2Config>::Fp

Return fe * Self::NONRESIDUE. Intended for specialization when Self::NONRESIDUE has a special structure that can speed up multiplication
source§

fn sub_and_mul_fp_by_nonresidue( y: &mut <Fq2Config as Fp2Config>::Fp, x: &<Fq2Config as Fp2Config>::Fp )

A specializable method for computing x - mul_fp_by_nonresidue(y) This allows for optimizations when the non-residue is canonically negative in the field.
source§

fn mul_fp_by_nonresidue_plus_one_and_add( y: &mut <Fq2Config as Fp2Config>::Fp, x: &<Fq2Config as Fp2Config>::Fp )

A specializable method for computing x + mul_fp_by_nonresidue(y) + y This allows for optimizations when the non-residue is not -1.
source§

fn mul_fp_by_nonresidue_and_add( y: &mut <Fq2Config as Fp2Config>::Fp, x: &<Fq2Config as Fp2Config>::Fp )

A specializable method for setting y = x + NONRESIDUE * y. This allows for optimizations when the non-residue is canonically negative in the field.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V