[−]Struct indy_crypto::bn::BIGNUMBER_2
Methods from Deref<Target = BigNumber>
pub fn is_prime(
&self,
ctx: Option<&mut BigNumberContext>
) -> Result<bool, IndyCryptoError>
[src]
pub fn is_prime(
&self,
ctx: Option<&mut BigNumberContext>
) -> Result<bool, IndyCryptoError>
pub fn is_safe_prime(
&self,
ctx: Option<&mut BigNumberContext>
) -> Result<bool, IndyCryptoError>
[src]
pub fn is_safe_prime(
&self,
ctx: Option<&mut BigNumberContext>
) -> Result<bool, IndyCryptoError>
pub fn rand_range(&self) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn rand_range(&self) -> Result<BigNumber, IndyCryptoError>
pub fn num_bits(&self) -> Result<i32, IndyCryptoError>
[src]
pub fn num_bits(&self) -> Result<i32, IndyCryptoError>
pub fn is_bit_set(&self, n: i32) -> Result<bool, IndyCryptoError>
[src]
pub fn is_bit_set(&self, n: i32) -> Result<bool, IndyCryptoError>
pub fn to_dec(&self) -> Result<String, IndyCryptoError>
[src]
pub fn to_dec(&self) -> Result<String, IndyCryptoError>
pub fn to_hex(&self) -> Result<String, IndyCryptoError>
[src]
pub fn to_hex(&self) -> Result<String, IndyCryptoError>
pub fn to_bytes(&self) -> Result<Vec<u8>, IndyCryptoError>
[src]
pub fn to_bytes(&self) -> Result<Vec<u8>, IndyCryptoError>
pub fn add(&self, a: &BigNumber) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn add(&self, a: &BigNumber) -> Result<BigNumber, IndyCryptoError>
pub fn sub(&self, a: &BigNumber) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn sub(&self, a: &BigNumber) -> Result<BigNumber, IndyCryptoError>
pub fn sqr(
&self,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn sqr(
&self,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
pub fn mul(
&self,
a: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn mul(
&self,
a: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
pub fn mod_mul(
&self,
a: &BigNumber,
n: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn mod_mul(
&self,
a: &BigNumber,
n: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
pub fn mod_sub(
&self,
a: &BigNumber,
n: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn mod_sub(
&self,
a: &BigNumber,
n: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
pub fn div(
&self,
a: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn div(
&self,
a: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
pub fn mod_exp(
&self,
a: &BigNumber,
b: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn mod_exp(
&self,
a: &BigNumber,
b: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
pub fn modulus(
&self,
a: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn modulus(
&self,
a: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
pub fn exp(
&self,
a: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn exp(
&self,
a: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
pub fn inverse(
&self,
n: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn inverse(
&self,
n: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
pub fn set_negative(&self, negative: bool) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn set_negative(&self, negative: bool) -> Result<BigNumber, IndyCryptoError>
pub fn is_negative(&self) -> bool
[src]
pub fn is_negative(&self) -> bool
pub fn increment(&self) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn increment(&self) -> Result<BigNumber, IndyCryptoError>
pub fn decrement(&self) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn decrement(&self) -> Result<BigNumber, IndyCryptoError>
pub fn lshift1(&self) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn lshift1(&self) -> Result<BigNumber, IndyCryptoError>
pub fn rshift1(&self) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn rshift1(&self) -> Result<BigNumber, IndyCryptoError>
pub fn rshift(&self, n: i32) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn rshift(&self, n: i32) -> Result<BigNumber, IndyCryptoError>
pub fn mod_div(
&self,
b: &BigNumber,
p: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn mod_div(
&self,
b: &BigNumber,
p: &BigNumber,
ctx: Option<&mut BigNumberContext>
) -> Result<BigNumber, IndyCryptoError>
pub fn clone(&self) -> Result<BigNumber, IndyCryptoError>
[src]
pub fn clone(&self) -> Result<BigNumber, IndyCryptoError>
Trait Implementations
impl Deref for BIGNUMBER_2
impl Deref for BIGNUMBER_2
type Target = BigNumber
The resulting type after dereferencing.
fn deref(&self) -> &BigNumber
fn deref(&self) -> &BigNumber
Dereferences the value.
impl LazyStatic for BIGNUMBER_2
impl LazyStatic for BIGNUMBER_2
fn initialize(lazy: &Self)
fn initialize(lazy: &Self)
Auto Trait Implementations
impl Send for BIGNUMBER_2
impl Send for BIGNUMBER_2
impl Sync for BIGNUMBER_2
impl Sync for BIGNUMBER_2
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self