#[repr(C)]pub struct mbedtls_dhm_context {
pub private_P: mbedtls_mpi,
pub private_G: mbedtls_mpi,
pub private_X: mbedtls_mpi,
pub private_GX: mbedtls_mpi,
pub private_GY: mbedtls_mpi,
pub private_K: mbedtls_mpi,
pub private_RP: mbedtls_mpi,
pub private_Vi: mbedtls_mpi,
pub private_Vf: mbedtls_mpi,
pub private_pX: mbedtls_mpi,
}Expand description
\brief The DHM context structure.
Fields§
§private_P: mbedtls_mpi< The prime modulus.
private_G: mbedtls_mpi< The generator.
private_X: mbedtls_mpi< Our secret value.
private_GX: mbedtls_mpi< Our public key = \c G^X mod \c P.
private_GY: mbedtls_mpi< The public key of the peer = \c G^Y mod \c P.
private_K: mbedtls_mpi< The shared secret = \c G^(XY) mod \c P.
private_RP: mbedtls_mpi< The cached value = \c R^2 mod \c P.
private_Vi: mbedtls_mpi< The blinding value.
private_Vf: mbedtls_mpi< The unblinding value.
private_pX: mbedtls_mpi< The previous \c X.
Trait Implementations§
Source§impl Clone for mbedtls_dhm_context
impl Clone for mbedtls_dhm_context
Source§fn clone(&self) -> mbedtls_dhm_context
fn clone(&self) -> mbedtls_dhm_context
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for mbedtls_dhm_context
Source§impl Debug for mbedtls_dhm_context
impl Debug for mbedtls_dhm_context
Auto Trait Implementations§
impl !Send for mbedtls_dhm_context
impl !Sync for mbedtls_dhm_context
impl Freeze for mbedtls_dhm_context
impl RefUnwindSafe for mbedtls_dhm_context
impl Unpin for mbedtls_dhm_context
impl UnsafeUnpin for mbedtls_dhm_context
impl UnwindSafe for mbedtls_dhm_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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)