mbedtls_dhm_context
dhm.h
size_t size_t mbedtls_dhm_context::len len mbedtls_dhm_context::len

The size of `P` in Bytes.

mbedtls_mpi mbedtls_mpi mbedtls_dhm_context::P P mbedtls_dhm_context::P

The prime modulus.

mbedtls_mpi mbedtls_mpi mbedtls_dhm_context::G G mbedtls_dhm_context::G

The generator.

mbedtls_mpi mbedtls_mpi mbedtls_dhm_context::X X mbedtls_dhm_context::X

Our secret value.

mbedtls_mpi mbedtls_mpi mbedtls_dhm_context::GX GX mbedtls_dhm_context::GX

Our public key = `G^X` mod `P`.

mbedtls_mpi mbedtls_mpi mbedtls_dhm_context::GY GY mbedtls_dhm_context::GY

The public key of the peer = `G^Y` mod `P`.

mbedtls_mpi mbedtls_mpi mbedtls_dhm_context::K K mbedtls_dhm_context::K

The shared secret = `G^`(XY) mod `P`.

mbedtls_mpi mbedtls_mpi mbedtls_dhm_context::RP RP mbedtls_dhm_context::RP

The cached value = `R^2` mod `P`.

mbedtls_mpi mbedtls_mpi mbedtls_dhm_context::Vi Vi mbedtls_dhm_context::Vi

The blinding value.

mbedtls_mpi mbedtls_mpi mbedtls_dhm_context::Vf Vf mbedtls_dhm_context::Vf

The unblinding value.

mbedtls_mpi mbedtls_mpi mbedtls_dhm_context::pX pX mbedtls_dhm_context::pX

The previous `X`.

The DHM context structure.

mbedtls_dhm_context
G
GX
GY
K
P
RP
Vf
Vi
X
pX
...
mbedtls_mpi
- mbedtls_dhm_context
  G
- mbedtls_dhm_context
  GX
- mbedtls_dhm_context
  GY
- mbedtls_dhm_context
  K
- mbedtls_dhm_context
  len
- mbedtls_dhm_context
  P
- mbedtls_dhm_context
  pX
- mbedtls_dhm_context
  RP
- mbedtls_dhm_context
  Vf
- mbedtls_dhm_context
  Vi
- mbedtls_dhm_context
  X