Struct openssl::bn::BigNum
[−]
[src]
pub struct BigNum(_);
pub struct BigNum(_);
impl BigNum
fn new() -> Result<BigNum, SslError>
fn new_from(n: u64) -> Result<BigNum, SslError>
fn from_dec_str(s: &str) -> Result<BigNum, SslError>
fn from_hex_str(s: &str) -> Result<BigNum, SslError>
fn new_from_slice(n: &[u8]) -> Result<BigNum, SslError>
fn checked_sqr(&self) -> Result<BigNum, SslError>
fn checked_nnmod(&self, n: &BigNum) -> Result<BigNum, SslError>
fn checked_mod_add(&self, a: &BigNum, n: &BigNum) -> Result<BigNum, SslError>
fn checked_mod_sub(&self, a: &BigNum, n: &BigNum) -> Result<BigNum, SslError>
fn checked_mod_mul(&self, a: &BigNum, n: &BigNum) -> Result<BigNum, SslError>
fn checked_mod_sqr(&self, n: &BigNum) -> Result<BigNum, SslError>
fn checked_exp(&self, p: &BigNum) -> Result<BigNum, SslError>
fn checked_mod_exp(&self, p: &BigNum, n: &BigNum) -> Result<BigNum, SslError>
fn checked_mod_inv(&self, n: &BigNum) -> Result<BigNum, SslError>
fn add_word(&mut self, w: c_ulong) -> Result<(), SslError>
fn sub_word(&mut self, w: c_ulong) -> Result<(), SslError>
fn mul_word(&mut self, w: c_ulong) -> Result<(), SslError>
fn div_word(&mut self, w: c_ulong) -> Result<c_ulong, SslError>
fn mod_word(&self, w: c_ulong) -> Result<c_ulong, SslError>
fn checked_gcd(&self, a: &BigNum) -> Result<BigNum, SslError>
fn checked_generate_prime(bits: i32, safe: bool, add: Option<&BigNum>, rem: Option<&BigNum>) -> Result<BigNum, SslError>
fn is_prime(&self, checks: i32) -> Result<bool, SslError>
fn is_prime_fast(&self, checks: i32, do_trial_division: bool) -> Result<bool, SslError>
fn checked_new_random(bits: i32, prop: RNGProperty, odd: bool) -> Result<BigNum, SslError>
fn checked_new_pseudo_random(bits: i32, prop: RNGProperty, odd: bool) -> Result<BigNum, SslError>
fn checked_rand_in_range(&self) -> Result<BigNum, SslError>
fn checked_pseudo_rand_in_range(&self) -> Result<BigNum, SslError>
fn set_bit(&mut self, n: i32) -> Result<(), SslError>
fn clear_bit(&mut self, n: i32) -> Result<(), SslError>
fn is_bit_set(&self, n: i32) -> bool
fn mask_bits(&mut self, n: i32) -> Result<(), SslError>
fn checked_shl1(&self) -> Result<BigNum, SslError>
fn checked_shr1(&self) -> Result<BigNum, SslError>
fn checked_add(&self, a: &BigNum) -> Result<BigNum, SslError>
fn checked_sub(&self, a: &BigNum) -> Result<BigNum, SslError>
fn checked_mul(&self, a: &BigNum) -> Result<BigNum, SslError>
fn checked_div(&self, a: &BigNum) -> Result<BigNum, SslError>
fn checked_mod(&self, a: &BigNum) -> Result<BigNum, SslError>
fn checked_shl(&self, a: &i32) -> Result<BigNum, SslError>
fn checked_shr(&self, a: &i32) -> Result<BigNum, SslError>
fn negate(&mut self)
fn abs_cmp(&self, oth: BigNum) -> Ordering
fn is_negative(&self) -> bool
fn num_bits(&self) -> i32
fn num_bytes(&self) -> i32
fn to_vec(&self) -> Vec<u8>
fn to_dec_str(&self) -> String
fn to_hex_str(&self) -> String
impl<'a> Add<&'a BigNum> for &'a BigNum
impl<'a> Sub<&'a BigNum> for &'a BigNum
impl<'a> Mul<&'a BigNum> for &'a BigNum
impl<'a> Div<&'a BigNum> for &'a BigNum
impl<'a> Rem<&'a BigNum> for &'a BigNum
impl<'a> Shl<i32> for &'a BigNum
impl<'a> Shr<i32> for &'a BigNum
impl Clone for BigNum
fn clone(&self) -> BigNum
fn clone_from(&mut self, source: &Self)
impl Neg for BigNum
impl Debug for BigNum
impl Eq for BigNum
impl PartialEq for BigNum
impl Ord for BigNum
impl PartialOrd for BigNum
fn partial_cmp(&self, oth: &BigNum) -> Option<Ordering>
fn lt(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
fn gt(&self, other: &Rhs) -> bool
fn ge(&self, other: &Rhs) -> bool
impl Drop for BigNum
fn drop(&mut self)
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)