[−][src]Struct salty::FieldElement
Methods
impl FieldElement
[src]
pub fn reduce_completely(value: &mut FieldElement)
[src]
Trait Implementations
impl FieldImplementation for FieldElement
[src]
type Limbs = [u32; 8]
Internal representation as limbs
const ZERO: Self
[src]
const ONE: Self
[src]
const D: Self
[src]
const D2: Self
[src]
const BASEPOINT_X: Self
[src]
const BASEPOINT_Y: Self
[src]
const I: Self
[src]
fn to_bytes(&self) -> [u8; 32]
[src]
fn from_bytes_unchecked(bytes: &[u8; 32]) -> FieldElement
[src]
fn inverse(&self) -> FieldElement
[src]
fn squared(&self) -> FieldElement
[src]
fn pow2523(&self) -> FieldElement
[src]
fn from_bytes(bytes: &[u8; 32]) -> Result<Self>
[src]
fn parity(&self) -> u8
[src]
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> 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]
impl<'a, 'b> Mul<&'b FieldElement> for &'a FieldElement
[src]
type Output = FieldElement
The resulting type after applying the *
operator.
fn mul(self, other: &'b FieldElement) -> FieldElement
[src]
impl<'a> Neg for &'a FieldElement
[src]
type Output = FieldElement
The resulting type after applying the -
operator.
fn neg(self) -> FieldElement
[src]
impl<'b> AddAssign<&'b FieldElement> for FieldElement
[src]
fn add_assign(&mut self, other: &'b FieldElement)
[src]
impl<'b> SubAssign<&'b FieldElement> for FieldElement
[src]
fn sub_assign(&mut self, other: &'b FieldElement)
[src]
impl<'b> MulAssign<&'b FieldElement> for FieldElement
[src]
fn mul_assign(&mut self, other: &'b FieldElement)
[src]
impl Debug for FieldElement
[src]
impl Copy for FieldElement
[src]
impl Clone for FieldElement
[src]
fn clone(&self) -> FieldElement
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for FieldElement
[src]
fn default() -> FieldElement
[src]
impl ConstantTimeEq for FieldElement
[src]
impl ConditionallySelectable for FieldElement
[src]
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
[src]
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
[src]
fn conditional_assign(&mut self, other: &Self, choice: Choice)
[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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: Neg,
<&'a T as Neg>::Output == T,
[src]
T: ConditionallySelectable,
&'a T: Neg,
<&'a T as Neg>::Output == T,