Struct amcl::big::BIG
[−]
[src]
pub struct BIG { pub w: [Chunk; 7], }
Fields
w: [Chunk; 7]
Methods
impl BIG
[src]
fn new() -> BIG
[src]
fn new_int(x: isize) -> BIG
[src]
fn new_ints(a: &[Chunk]) -> BIG
[src]
fn new_copy(y: &BIG) -> BIG
[src]
fn new_big(y: &BIG) -> BIG
[src]
fn new_dcopy(y: &DBIG) -> BIG
[src]
fn get(&self, i: usize) -> Chunk
[src]
fn set(&mut self, i: usize, x: Chunk)
[src]
fn xortop(&mut self, x: Chunk)
[src]
fn ortop(&mut self, x: Chunk)
[src]
fn iszilch(&self) -> bool
[src]
fn zero(&mut self)
[src]
fn isunity(&self) -> bool
[src]
fn one(&mut self)
[src]
fn copy(&mut self, x: &BIG)
[src]
fn dcopy(&mut self, x: &DBIG)
[src]
fn excess(a: &BIG) -> Chunk
[src]
fn ff_excess(a: &BIG) -> Chunk
[src]
fn pexceed(a: &BIG, b: &BIG) -> bool
[src]
fn sexceed(a: &BIG) -> bool
[src]
fn ff_pexceed(a: &BIG, b: &BIG) -> bool
[src]
fn ff_sexceed(a: &BIG) -> bool
[src]
fn muladd(a: Chunk, b: Chunk, c: Chunk, r: Chunk) -> (Chunk, Chunk)
[src]
fn norm(&mut self) -> Chunk
[src]
fn cswap(&mut self, b: &mut BIG, d: isize)
[src]
fn cmove(&mut self, g: &BIG, d: isize)
[src]
fn fshr(&mut self, k: usize) -> isize
[src]
fn shr(&mut self, k: usize)
[src]
fn fshl(&mut self, k: usize) -> isize
[src]
fn shl(&mut self, k: usize)
[src]
fn nbits(&mut self) -> usize
[src]
fn tostring(&mut self) -> String
[src]
fn add(&mut self, r: &BIG)
[src]
fn dbl(&mut self)
[src]
fn plus(&self, x: &BIG) -> BIG
[src]
fn inc(&mut self, x: isize)
[src]
fn minus(&self, x: &BIG) -> BIG
[src]
fn sub(&mut self, x: &BIG)
[src]
fn rsub(&mut self, x: &BIG)
[src]
fn dec(&mut self, x: isize)
[src]
fn imul(&mut self, c: isize)
[src]
fn tobytearray(&mut self, b: &mut [u8], n: usize)
[src]
fn frombytearray(b: &[u8], n: usize) -> BIG
[src]
fn tobytes(&mut self, b: &mut [u8])
[src]
fn frombytes(b: &[u8]) -> BIG
[src]
fn to_hex(&self) -> String
[src]
fn from_hex_iter(iter: &mut SplitWhitespace) -> BIG
[src]
fn from_hex(val: String) -> BIG
[src]
fn pmul(&mut self, c: isize) -> Chunk
[src]
fn pxmul(&mut self, c: isize) -> DBIG
[src]
fn div3(&mut self) -> Chunk
[src]
fn smul(a: &BIG, b: &BIG) -> BIG
[src]
fn comp(a: &BIG, b: &BIG) -> isize
[src]
fn mod2m(&mut self, m: usize)
[src]
fn invmod256(a: isize) -> isize
[src]
fn parity(&self) -> isize
[src]
fn bit(&self, n: usize) -> isize
[src]
fn lastbits(&mut self, n: usize) -> isize
[src]
fn invmod2m(&mut self)
[src]
fn rmod(&mut self, n: &BIG)
[src]
fn div(&mut self, n: &BIG)
[src]
fn random(rng: &mut RAND) -> BIG
[src]
fn randomnum(q: &BIG, rng: &mut RAND) -> BIG
[src]
fn jacobi(&mut self, p: &BIG) -> isize
[src]
fn invmodp(&mut self, p: &BIG)
[src]
fn mul(a: &BIG, b: &BIG) -> DBIG
[src]
fn sqr(a: &BIG) -> DBIG
[src]
fn modulo(d: &mut DBIG) -> BIG
[src]
fn modmul(a: &mut BIG, b: &mut BIG, m: &BIG) -> BIG
[src]
fn modsqr(a: &mut BIG, m: &BIG) -> BIG
[src]
fn modneg(a: &mut BIG, m: &BIG) -> BIG
[src]
fn powmod(&mut self, e: &mut BIG, m: &BIG) -> BIG
[src]
Trait Implementations
impl Copy for BIG
[src]
impl Clone for BIG
[src]
fn clone(&self) -> BIG
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for BIG
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Debug for BIG
[src]
impl PartialEq for BIG
[src]
fn eq(&self, other: &BIG) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Ord for BIG
[src]
fn cmp(&self, other: &BIG) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the minimum of two values. Read more
impl Eq for BIG
[src]
impl PartialOrd for BIG
[src]
fn partial_cmp(&self, other: &BIG) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more