[][src]Struct salty::FieldElement

pub struct FieldElement(pub [i64; 16]);

Element of the base field of the elliptic curve

Trait Implementations

impl FieldImplementation for FieldElement[src]

type Limbs = [i64; 16]

Internal representation as limbs

fn pow2523(&self) -> FieldElement[src]

TODO: figure out why this doesn't pass the test at the end

impl Debug for FieldElement[src]

impl<'a, 'b> Sub<&'b FieldElement> for &'a FieldElement[src]

type Output = FieldElement

The resulting type after applying the - operator.

fn sub(self, other: &'b FieldElement) -> FieldElement[src]

Subition of field elements

impl PartialEq<FieldElement> for FieldElement[src]

impl<'a, 'b> Add<&'b FieldElement> for &'a FieldElement[src]

type Output = FieldElement

The resulting type after applying the + operator.

fn add(self, other: &'b FieldElement) -> FieldElement[src]

Addition of field elements

impl<'a, 'b> Mul<&'b FieldElement> for &'a FieldElement[src]

type Output = FieldElement

The resulting type after applying the * operator.

impl<'a> Neg for &'a FieldElement[src]

type Output = FieldElement

The resulting type after applying the - operator.

fn neg(self) -> FieldElement[src]

Subition of field elements

impl<'b> AddAssign<&'b FieldElement> for FieldElement[src]

impl<'b> SubAssign<&'b FieldElement> for FieldElement[src]

impl<'b> MulAssign<&'b FieldElement> for FieldElement[src]

impl Copy for FieldElement[src]

impl Clone for FieldElement[src]

impl Default for FieldElement[src]

impl ConstantTimeEq for FieldElement[src]

impl ConditionallySelectable for FieldElement[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ConditionallyNegatable for T where
    T: ConditionallySelectable,
    &'a T: Neg,
    <&'a T as Neg>::Output == T, 
[src]