[]Struct amcl_wrapper::ECCurve::big::BIG

pub struct BIG {
    pub w: [i64; 7],
}

Fields

w: [i64; 7]

Methods

impl BIG

pub fn new() -> BIG

pub fn new_int(x: isize) -> BIG

pub fn new_ints(a: &[i64]) -> BIG

pub fn new_copy(y: &BIG) -> BIG

pub fn new_big(y: &BIG) -> BIG

pub fn new_dcopy(y: &DBIG) -> BIG

pub fn get(&self, i: usize) -> i64

pub fn set(&mut self, i: usize, x: i64)

pub fn xortop(&mut self, x: i64)

pub fn ortop(&mut self, x: i64)

pub fn iszilch(&self) -> bool

pub fn zero(&mut self)

pub fn isunity(&self) -> bool

pub fn one(&mut self)

pub fn copy(&mut self, x: &BIG)

pub fn dcopy(&mut self, x: &DBIG)

pub fn muladd(a: i64, b: i64, c: i64, r: i64) -> (i64, i64)

pub fn norm(&mut self) -> i64

pub fn cswap(&mut self, b: &mut BIG, d: isize)

pub fn cmove(&mut self, g: &BIG, d: isize)

pub fn fshr(&mut self, k: usize) -> isize

pub fn shr(&mut self, k: usize)

pub fn fshl(&mut self, k: usize) -> isize

pub fn shl(&mut self, k: usize)

pub fn nbits(&self) -> usize

pub fn tostring(&mut self) -> String

pub fn fromstring(val: String) -> BIG

pub fn from_hex(val: String) -> BIG

pub fn to_hex(&mut self) -> String

pub fn add(&mut self, r: &BIG)

pub fn or(&mut self, r: &BIG)

pub fn dbl(&mut self)

pub fn plus(&self, x: &BIG) -> BIG

pub fn inc(&mut self, x: isize)

pub fn minus(&self, x: &BIG) -> BIG

pub fn sub(&mut self, x: &BIG)

pub fn rsub(&mut self, x: &BIG)

pub fn dec(&mut self, x: isize)

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

pub fn tobytearray(&mut self, b: &mut [u8], n: usize)

pub fn frombytearray(b: &[u8], n: usize) -> BIG

pub fn tobytes(&mut self, b: &mut [u8])

pub fn frombytes(b: &[u8]) -> BIG

pub fn pmul(&mut self, c: isize) -> i64

pub fn pxmul(&mut self, c: isize) -> DBIG

pub fn div3(&mut self) -> i64

pub fn smul(a: &BIG, b: &BIG) -> BIG

pub fn comp(a: &BIG, b: &BIG) -> isize

pub fn mod2m(&mut self, m: usize)

pub fn invmod256(a: isize) -> isize

pub fn parity(&self) -> isize

pub fn bit(&self, n: usize) -> isize

pub fn lastbits(&mut self, n: usize) -> isize

pub fn invmod2m(&mut self)

pub fn rmod(&mut self, n: &BIG)

pub fn div(&mut self, n: &BIG)

pub fn random(rng: &mut RAND) -> BIG

pub fn randomnum(q: &BIG, rng: &mut RAND) -> BIG

pub fn jacobi(&mut self, p: &BIG) -> isize

pub fn invmodp(&mut self, p: &BIG)

pub fn mul(a: &BIG, b: &BIG) -> DBIG

pub fn sqr(a: &BIG) -> DBIG

pub fn monty(md: &BIG, mc: i64, d: &mut DBIG) -> BIG

pub fn ssn(r: &mut BIG, a: &BIG, m: &mut BIG) -> isize

pub fn modmul(a1: &BIG, b1: &BIG, m: &BIG) -> BIG

pub fn modsqr(a1: &BIG, m: &BIG) -> BIG

pub fn modneg(a1: &BIG, m: &BIG) -> BIG

pub fn powmod(&mut self, e1: &BIG, m: &BIG) -> BIG

Trait Implementations

impl Clone for BIG

impl PartialOrd<BIG> for BIG

impl Debug for BIG

impl Ord for BIG

impl Eq for BIG

impl Display for BIG

impl Copy for BIG

impl PartialEq<BIG> for BIG

impl From<BIG> for FieldElement[src]

Auto Trait Implementations

impl Send for BIG

impl Unpin for BIG

impl Sync for BIG

impl UnwindSafe for BIG

impl RefUnwindSafe for BIG

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self