Struct esp_idf_sys::mbedtls_rsa_context
source · #[repr(C)]pub struct mbedtls_rsa_context {Show 17 fields
pub private_ver: c_int,
pub private_len: usize,
pub private_N: mbedtls_mpi,
pub private_E: mbedtls_mpi,
pub private_D: mbedtls_mpi,
pub private_P: mbedtls_mpi,
pub private_Q: mbedtls_mpi,
pub private_DP: mbedtls_mpi,
pub private_DQ: mbedtls_mpi,
pub private_QP: mbedtls_mpi,
pub private_RN: mbedtls_mpi,
pub private_RP: mbedtls_mpi,
pub private_RQ: mbedtls_mpi,
pub private_Vi: mbedtls_mpi,
pub private_Vf: mbedtls_mpi,
pub private_padding: c_int,
pub private_hash_id: c_int,
}
Expand description
\brief The RSA context structure.
Fields§
§private_ver: c_int
< Reserved for internal purposes. Do not set this field in application code. Its meaning might change without notice.
private_len: usize
< The size of \p N in Bytes.
private_N: mbedtls_mpi
< The public modulus.
private_E: mbedtls_mpi
< The public exponent.
private_D: mbedtls_mpi
< The private exponent.
private_P: mbedtls_mpi
< The first prime factor.
private_Q: mbedtls_mpi
< The second prime factor.
private_DP: mbedtls_mpi
< D % (P - 1)
.
private_DQ: mbedtls_mpi
< D % (Q - 1)
.
private_QP: mbedtls_mpi
< 1 / (Q % P)
.
private_RN: mbedtls_mpi
< cached R^2 mod N
.
private_RP: mbedtls_mpi
< cached R^2 mod P
.
private_RQ: mbedtls_mpi
< cached R^2 mod Q
.
private_Vi: mbedtls_mpi
< The cached blinding value.
private_Vf: mbedtls_mpi
< The cached un-blinding value.
private_padding: c_int
< Selects padding mode: #MBEDTLS_RSA_PKCS_V15 for 1.5 padding and #MBEDTLS_RSA_PKCS_V21 for OAEP or PSS.
private_hash_id: c_int
< Hash identifier of mbedtls_md_type_t type, as specified in md.h for use in the MGF mask generating function used in the EME-OAEP and EMSA-PSS encodings.
Trait Implementations§
source§impl Clone for mbedtls_rsa_context
impl Clone for mbedtls_rsa_context
source§fn clone(&self) -> mbedtls_rsa_context
fn clone(&self) -> mbedtls_rsa_context
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_rsa_context
impl Debug for mbedtls_rsa_context
source§impl Default for mbedtls_rsa_context
impl Default for mbedtls_rsa_context
impl Copy for mbedtls_rsa_context
Auto Trait Implementations§
impl Freeze for mbedtls_rsa_context
impl RefUnwindSafe for mbedtls_rsa_context
impl !Send for mbedtls_rsa_context
impl !Sync for mbedtls_rsa_context
impl Unpin for mbedtls_rsa_context
impl UnwindSafe for mbedtls_rsa_context
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
)