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]
pub fn new() -> Result<BigNumContext, ErrorStack>
[src]
Returns a new BigNumContext
.
See OpenSSL documentation at BN_CTX_new
.
Trait Implementations
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
Constructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut BN_CTX
Returns a raw pointer to the wrapped value.
impl Drop for BigNumContext
impl Deref for BigNumContext
type Target = BigNumContextRef
The resulting type after dereferencing.
fn deref(&self) -> &BigNumContextRef
Dereferences the value.
impl DerefMut for BigNumContext
fn deref_mut(&mut self) -> &mut BigNumContextRef
Mutably dereferences the value.