[][src]Struct amcl_wrapper::ECCurve::fp::FP

pub struct FP {
    pub x: BIG,
    pub xes: i32,
}

Fields

x: BIGxes: i32

Implementations

impl FP[src]

pub const fn new() -> FP[src]

pub fn new_int(a: isize) -> FP[src]

pub fn new_copy(y: &FP) -> FP[src]

pub fn new_big(y: &BIG) -> FP[src]

pub fn new_rand(rng: &mut RAND) -> FP[src]

pub fn nres(&mut self)[src]

pub fn redc(&self) -> BIG[src]

pub fn modulo(d: &mut DBIG) -> BIG[src]

pub fn tostring(&self) -> String[src]

pub fn reduce(&mut self)[src]

pub fn iszilch(&self) -> bool[src]

pub fn isunity(&self) -> bool[src]

pub fn sign(&self) -> isize[src]

pub fn copy(&mut self, b: &FP)[src]

pub fn bcopy(&mut self, b: &BIG)[src]

pub fn zero(&mut self)[src]

pub fn one(&mut self)[src]

pub fn norm(&mut self)[src]

pub fn cswap(&mut self, b: &mut FP, d: isize)[src]

pub fn cmove(&mut self, b: &FP, d: isize)[src]

pub fn mul(&mut self, b: &FP)[src]

pub fn neg(&mut self)[src]

pub fn imul(&mut self, c: isize)[src]

pub fn sqr(&mut self)[src]

pub fn add(&mut self, b: &FP)[src]

pub fn dbl(&mut self)[src]

pub fn sub(&mut self, b: &FP)[src]

pub fn rsub(&mut self, b: &FP)[src]

pub fn div2(&mut self)[src]

pub fn jacobi(&mut self) -> isize[src]

pub fn equals(&self, a: &FP) -> bool[src]

pub fn pow(&self, e: &BIG) -> FP[src]

pub fn fpow(&self) -> FP[src]

pub fn invsqrt(&mut self)[src]

pub fn inverse(&mut self)[src]

pub fn qr(&self, give_hint: Option<&mut FP>) -> isize[src]

pub fn sqrt(&mut self, take_hint: Option<&FP>) -> FP[src]

Trait Implementations

impl Clone for FP[src]

impl Copy for FP[src]

Auto Trait Implementations

impl RefUnwindSafe for FP

impl Send for FP

impl Sync for FP

impl Unpin for FP

impl UnwindSafe for FP

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,