Struct openssl::bn::BigNum [] [src]

pub struct BigNum(_);

Methods

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

unsafe fn raw(&self) -> *mut BIGNUM

unsafe fn raw_ptr(&self) -> *const *mut BIGNUM

fn to_vec(&self) -> Vec<u8>

fn to_dec_str(&self) -> String

fn to_hex_str(&self) -> String

Trait Implementations

impl<'a> Add<&'a BigNum> for &'a BigNum

type Output = BigNum

fn add(self, oth: &'a BigNum) -> BigNum

impl<'a> Sub<&'a BigNum> for &'a BigNum

type Output = BigNum

fn sub(self, oth: &'a BigNum) -> BigNum

impl<'a> Mul<&'a BigNum> for &'a BigNum

type Output = BigNum

fn mul(self, oth: &'a BigNum) -> BigNum

impl<'a> Div<&'a BigNum> for &'a BigNum

type Output = BigNum

fn div(self, oth: &'a BigNum) -> BigNum

impl<'a> Rem<&'a BigNum> for &'a BigNum

type Output = BigNum

fn rem(self, oth: &'a BigNum) -> BigNum

impl<'a> Shl<i32> for &'a BigNum

type Output = BigNum

fn shl(self, n: i32) -> BigNum

impl<'a> Shr<i32> for &'a BigNum

type Output = BigNum

fn shr(self, n: i32) -> BigNum

impl Clone for BigNum

fn clone(&self) -> BigNum

fn clone_from(&mut self, source: &Self)

impl Neg for BigNum

type Output = BigNum

fn neg(self) -> BigNum

impl Debug for BigNum

fn fmt(&self, f: &mut Formatter) -> Result

impl Eq for BigNum

impl PartialEq for BigNum

fn eq(&self, oth: &BigNum) -> bool

fn ne(&self, other: &Rhs) -> bool

impl Ord for BigNum

fn cmp(&self, oth: &BigNum) -> Ordering

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)