Struct tiny_secp256k1::big_num::BigNum
[−]
[src]
pub struct BigNum { /* fields omitted */ }
Methods
impl BigNum
[src]
fn is_overflow(&self) -> bool
fn is_even(&self) -> bool
fn is_odd(&self) -> bool
fn split(&mut self) -> BigNum
fn write_bytes_to(&self, buf: &mut [u8])
fn double(&mut self)
fn get_naf(&self, w: u8) -> NAF
fn red_neg(&self) -> BigNum
fn red_add(&self, num: &BigNum) -> BigNum
fn red_double(&mut self)
fn red_add_mut(&mut self, num: &BigNum)
fn red_sub_twice(&self, num: &BigNum) -> BigNum
fn red_sub(&self, num: &BigNum) -> BigNum
fn red_mul(&self, num: &BigNum) -> BigNum
fn red_mul_mut(&mut self, num: &BigNum)
fn red_invm(self) -> BigNum
fn red_sqr(&self) -> BigNum
fn mul_k(&mut self)
fn red_reduce(&mut self)
Trait Implementations
impl Copy for BigNum
[src]
impl Clone for BigNum
[src]
fn clone(&self) -> BigNum
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for BigNum
[src]
impl Debug for BigNum
[src]
impl PartialEq for BigNum
[src]
fn eq(&self, other: &BigNum) -> bool
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
This method tests for !=
.
impl Ord for BigNum
[src]
fn cmp(&self, other: &BigNum) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for BigNum
[src]
fn partial_cmp(&self, other: &BigNum) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
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
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
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
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq<u32> for BigNum
[src]
fn eq(&self, other: &u32) -> bool
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
This method tests for !=
.
impl<'a> PartialEq<u32> for &'a BigNum
[src]
fn eq(&self, other: &u32) -> bool
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
This method tests for !=
.
impl PartialOrd<u32> for BigNum
[src]
fn partial_cmp(&self, other: &u32) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
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
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
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
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<'a> Add<&'a BigNum> for BigNum
[src]
type Output = BigNum
The resulting type after applying the +
operator
fn add(self, rhs: &BigNum) -> Self
The method for the +
operator
impl<'a> AddAssign<&'a BigNum> for BigNum
[src]
fn add_assign(&mut self, rhs: &BigNum)
The method for the +=
operator
impl Add<u32> for BigNum
[src]
type Output = BigNum
The resulting type after applying the +
operator
fn add(self, rhs: u32) -> Self
The method for the +
operator
impl AddAssign<u32> for BigNum
[src]
fn add_assign(&mut self, rhs: u32)
The method for the +=
operator
impl<'a> Sub<&'a BigNum> for BigNum
[src]
type Output = BigNum
The resulting type after applying the -
operator
fn sub(self, rhs: &BigNum) -> Self
The method for the -
operator
impl<'a> SubAssign<&'a BigNum> for BigNum
[src]
fn sub_assign(&mut self, rhs: &BigNum)
The method for the -=
operator
impl<'a> Mul<&'a BigNum> for BigNum
[src]
type Output = BigNum
The resulting type after applying the *
operator
fn mul(self, rhs: &BigNum) -> BigNum
The method for the *
operator
impl<'a> MulAssign<&'a BigNum> for BigNum
[src]
fn mul_assign(&mut self, rhs: &BigNum)
The method for the *=
operator
impl Mul<u32> for BigNum
[src]
type Output = BigNum
The resulting type after applying the *
operator
fn mul(self, rhs: u32) -> BigNum
The method for the *
operator
impl MulAssign<u32> for BigNum
[src]
fn mul_assign(&mut self, rhs: u32)
The method for the *=
operator
impl Shr<u32> for BigNum
[src]
type Output = BigNum
The resulting type after applying the >>
operator
fn shr(self, shift: u32) -> BigNum
The method for the >>
operator
impl ShrAssign<u32> for BigNum
[src]
fn shr_assign(&mut self, shift: u32)
The method for the >>=
operator
impl<'a> From<&'a [u8]> for BigNum
[src]
fn from(buf: &'a [u8]) -> Self
Performs the conversion.
impl From<u32> for BigNum
[src]
fn from(n: u32) -> Self
Performs the conversion.