Struct openssl::bn::BigNumContext [−]
pub struct BigNumContext(_);
Temporary storage for BigNums on the secure heap
BigNum values are stored dynamically and therefore can be expensive
to allocate. BigNumContext and the OpenSSL BN_CTX
structure are used
internally when passing BigNum values between subroutines.
Methods
impl BigNumContext
[src]
impl BigNumContext
pub fn new() -> Result<BigNumContext, ErrorStack>
[src]
pub fn new() -> Result<BigNumContext, ErrorStack>
Returns a new BigNumContext
.
See OpenSSL documentation at BN_CTX_new
.
Trait Implementations
impl ForeignType for BigNumContext
impl ForeignType for BigNumContext
type CType = BN_CTX
The raw C type.
type Ref = BigNumContextRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut BN_CTX) -> BigNumContext
unsafe fn from_ptr(ptr: *mut BN_CTX) -> BigNumContext
Constructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut BN_CTX
fn as_ptr(&self) -> *mut BN_CTX
Returns a raw pointer to the wrapped value.
impl Drop for BigNumContext
impl Drop for BigNumContext
impl Deref for BigNumContext
impl Deref for BigNumContext
type Target = BigNumContextRef
The resulting type after dereferencing.
fn deref(&self) -> &BigNumContextRef
fn deref(&self) -> &BigNumContextRef
Dereferences the value.
impl DerefMut for BigNumContext
impl DerefMut for BigNumContext
fn deref_mut(&mut self) -> &mut BigNumContextRef
fn deref_mut(&mut self) -> &mut BigNumContextRef
Mutably dereferences the value.
impl Borrow<BigNumContextRef> for BigNumContext
impl Borrow<BigNumContextRef> for BigNumContext
fn borrow(&self) -> &BigNumContextRef
fn borrow(&self) -> &BigNumContextRef
Immutably borrows from an owned value. Read more
impl AsRef<BigNumContextRef> for BigNumContext
impl AsRef<BigNumContextRef> for BigNumContext
fn as_ref(&self) -> &BigNumContextRef
fn as_ref(&self) -> &BigNumContextRef
Performs the conversion.
impl Send for BigNumContext
[src]
impl Send for BigNumContext
impl Sync for BigNumContext
[src]
impl Sync for BigNumContext