Lines Matching full:g
123 src = &ctx->G; in mbedtls_dhm_get_value()
153 (ret = dhm_read_bignum(&ctx->G, p, end)) != 0 || in mbedtls_dhm_read_params()
207 * Calculate GX = G^X mod P in dhm_make_common()
209 MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod(&ctx->GX, &ctx->G, &ctx->X, in dhm_make_common()
238 * Export P, G, GX. RFC 5246 §4.4 states that "leading zero octets are in mbedtls_dhm_make_params()
252 n2 = mbedtls_mpi_size(&ctx->G); in mbedtls_dhm_make_params()
257 DHM_MPI_EXPORT(&ctx->G, n2); in mbedtls_dhm_make_params()
274 const mbedtls_mpi *G) in mbedtls_dhm_set_group() argument
279 (ret = mbedtls_mpi_copy(&ctx->G, G)) != 0) { in mbedtls_dhm_set_group()
287 * Import the peer's public value G^Y
306 * Create own private value X and export G^X
403 * Derive and export the shared secret (G^Y)^X mod P
472 mbedtls_mpi_free(&ctx->G); in mbedtls_dhm_free()
523 * generator INTEGER, -- g in mbedtls_dhm_parse_dhm()
536 (ret = mbedtls_asn1_get_mpi(&p, end, &dhm->G)) != 0) { in mbedtls_dhm_parse_dhm()