Struct boring::bn::BigNumContext
source · #[repr(transparent)]pub struct BigNumContext(/* private fields */);
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§
source§impl BigNumContext
impl BigNumContext
sourcepub fn new() -> Result<BigNumContext, ErrorStack>
pub fn new() -> Result<BigNumContext, ErrorStack>
Returns a new BigNumContext
.
See OpenSSL documentation at BN_CTX_new
.
Trait Implementations§
source§impl AsMut<BigNumContextRef> for BigNumContext
impl AsMut<BigNumContextRef> for BigNumContext
source§fn as_mut(&mut self) -> &mut BigNumContextRef
fn as_mut(&mut self) -> &mut BigNumContextRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<BigNumContextRef> for BigNumContext
impl AsRef<BigNumContextRef> for BigNumContext
source§fn as_ref(&self) -> &BigNumContextRef
fn as_ref(&self) -> &BigNumContextRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<BigNumContextRef> for BigNumContext
impl Borrow<BigNumContextRef> for BigNumContext
source§fn borrow(&self) -> &BigNumContextRef
fn borrow(&self) -> &BigNumContextRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<BigNumContextRef> for BigNumContext
impl BorrowMut<BigNumContextRef> for BigNumContext
source§fn borrow_mut(&mut self) -> &mut BigNumContextRef
fn borrow_mut(&mut self) -> &mut BigNumContextRef
Mutably borrows from an owned value. Read more
source§impl Deref for BigNumContext
impl Deref for BigNumContext
§type Target = BigNumContextRef
type Target = BigNumContextRef
The resulting type after dereferencing.
source§fn deref(&self) -> &BigNumContextRef
fn deref(&self) -> &BigNumContextRef
Dereferences the value.
source§impl DerefMut for BigNumContext
impl DerefMut for BigNumContext
source§fn deref_mut(&mut self) -> &mut BigNumContextRef
fn deref_mut(&mut self) -> &mut BigNumContextRef
Mutably dereferences the value.
source§impl Drop for BigNumContext
impl Drop for BigNumContext
source§impl ForeignType for BigNumContext
impl ForeignType for BigNumContext
§type CType = bignum_ctx
type CType = bignum_ctx
The raw C type.
§type Ref = BigNumContextRef
type Ref = BigNumContextRef
The type representing a reference to this type.
impl Send for BigNumContext
impl Sync for BigNumContext
Auto Trait Implementations§
impl RefUnwindSafe for BigNumContext
impl Unpin for BigNumContext
impl UnwindSafe for BigNumContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more