[−]Struct amcl_wrapper::ECCurve::big::BIG
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
fn clone(&self) -> BIG
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialOrd<BIG> for BIG
fn partial_cmp(&self, other: &BIG) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Debug for BIG
impl Ord for BIG
fn cmp(&self, other: &BIG) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self