Struct openssl::bn::BigNumContext
source · [−]pub struct BigNumContext(_);
Expand description
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.
Implementations
sourceimpl BigNumContext
impl BigNumContext
sourcepub fn new() -> Result<BigNumContext, ErrorStack>
pub fn new() -> Result<BigNumContext, ErrorStack>
Returns a new BigNumContext
.
This corresponds to BN_CTX_new
.
sourcepub fn new_secure() -> Result<BigNumContext, ErrorStack>
pub fn new_secure() -> Result<BigNumContext, ErrorStack>
Returns a new secure BigNumContext
.
This corresponds to BN_CTX_secure_new
.
Trait Implementations
sourceimpl AsRef<BigNumContextRef> for BigNumContext
impl AsRef<BigNumContextRef> for BigNumContext
sourcefn as_ref(&self) -> &BigNumContextRef
fn as_ref(&self) -> &BigNumContextRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<BigNumContextRef> for BigNumContext
impl Borrow<BigNumContextRef> for BigNumContext
sourcefn borrow(&self) -> &BigNumContextRef
fn borrow(&self) -> &BigNumContextRef
Immutably borrows from an owned value. Read more
sourceimpl Deref for BigNumContext
impl Deref for BigNumContext
type Target = BigNumContextRef
type Target = BigNumContextRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &BigNumContextRef
fn deref(&self) -> &BigNumContextRef
Dereferences the value.
sourceimpl DerefMut for BigNumContext
impl DerefMut for BigNumContext
sourcefn deref_mut(&mut self) -> &mut BigNumContextRef
fn deref_mut(&mut self) -> &mut BigNumContextRef
Mutably dereferences the value.
sourceimpl Drop for BigNumContext
impl Drop for BigNumContext
sourceimpl ForeignType for BigNumContext
impl ForeignType for BigNumContext
type Ref = BigNumContextRef
type Ref = BigNumContextRef
The type representing a reference to this type.
sourceunsafe 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.
impl Send for BigNumContext
impl Sync for BigNumContext
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more