Struct esp_idf_sys::mbedtls_mpi
source · #[repr(C)]pub struct mbedtls_mpi {
pub private_p: *mut mbedtls_mpi_uint,
pub private_s: c_short,
pub private_n: c_ushort,
}
Expand description
\brief MPI structure
Fields§
§private_p: *mut mbedtls_mpi_uint
Pointer to limbs.
This may be \c NULL if \c n is 0.
private_s: c_short
Sign: -1 if the mpi is negative, 1 otherwise.
The number 0 must be represented with s = +1
. Although many library
functions treat all-limbs-zero as equivalent to a valid representation
of 0 regardless of the sign bit, there are exceptions, so bignum
functions and external callers must always set \c s to +1 for the
number zero.
Note that this implies that calloc() or ... = {0}
does not create
a valid MPI representation. You must call mbedtls_mpi_init().
private_n: c_ushort
Total number of limbs in \c p.
Trait Implementations§
source§impl Clone for mbedtls_mpi
impl Clone for mbedtls_mpi
source§fn clone(&self) -> mbedtls_mpi
fn clone(&self) -> mbedtls_mpi
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for mbedtls_mpi
impl Debug for mbedtls_mpi
source§impl Default for mbedtls_mpi
impl Default for mbedtls_mpi
impl Copy for mbedtls_mpi
Auto Trait Implementations§
impl Freeze for mbedtls_mpi
impl RefUnwindSafe for mbedtls_mpi
impl !Send for mbedtls_mpi
impl !Sync for mbedtls_mpi
impl Unpin for mbedtls_mpi
impl UnwindSafe for mbedtls_mpi
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)