Struct ark_ff::fields::models::fp6_2over3::Fp6ConfigWrapper

source ·
pub struct Fp6ConfigWrapper<P: Fp6Config>(/* private fields */);

Trait Implementations§

source§

impl<P: Fp6Config> QuadExtConfig for Fp6ConfigWrapper<P>

§

type BasePrimeField = <<P as Fp6Config>::Fp3Config as Fp3Config>::Fp

The prime field that this quadratic extension is eventually an extension of.
§

type BaseField = CubicExtField<Fp3ConfigWrapper<<P as Fp6Config>::Fp3Config>>

The base field that this field is a quadratic extension of. Read more
§

type FrobCoeff = <Fp6ConfigWrapper<P> as QuadExtConfig>::BasePrimeField

The type of the coefficients for an efficient implemntation of the Frobenius endomorphism.
source§

const DEGREE_OVER_BASE_PRIME_FIELD: usize = 6usize

The degree of the extension over the base prime field.
source§

const NONRESIDUE: Self::BaseField = P::NONRESIDUE

The quadratic non-residue used to construct the extension.
source§

const FROBENIUS_COEFF_C1: &'static [Self::FrobCoeff] = P::FROBENIUS_COEFF_FP6_C1

Coefficients for the Frobenius automorphism.
source§

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 Karatsuba multiplication and in complex squaring.
source§

fn mul_base_field_by_frob_coeff(fe: &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_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 )

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 )

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 Fp6ConfigWrapper<P>

§

impl<P> RefUnwindSafe for Fp6ConfigWrapper<P>
where P: RefUnwindSafe,

§

impl<P> Send for Fp6ConfigWrapper<P>

§

impl<P> Sync for Fp6ConfigWrapper<P>

§

impl<P> Unpin for Fp6ConfigWrapper<P>
where P: Unpin,

§

impl<P> UnwindSafe for Fp6ConfigWrapper<P>
where P: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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 T
where V: MultiLane<T>,

§

fn vzip(self) -> V