Home
last modified time | relevance | path

Searched refs:GX (Results 1 – 7 of 7) sorted by relevance

/mbedtls-3.7.0/library/
Dpsa_crypto_ffdh.c153 mbedtls_mpi GX, G, X, P; in mbedtls_psa_ffdh_export_public_key() local
167 mbedtls_mpi_init(&GX); mbedtls_mpi_init(&G); in mbedtls_psa_ffdh_export_public_key()
181 MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod(&GX, &G, &X, &P, NULL)); in mbedtls_psa_ffdh_export_public_key()
182 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&GX, data, key_len)); in mbedtls_psa_ffdh_export_public_key()
189 mbedtls_mpi_free(&X); mbedtls_mpi_free(&GX); in mbedtls_psa_ffdh_export_public_key()
Ddhm.c129 src = &ctx->GX; in mbedtls_dhm_get_value()
209 MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod(&ctx->GX, &ctx->G, &ctx->X, in dhm_make_common()
212 if ((ret = dhm_check_range(&ctx->GX, &ctx->P)) != 0) { in dhm_make_common()
253 n3 = mbedtls_mpi_size(&ctx->GX); in mbedtls_dhm_make_params()
258 DHM_MPI_EXPORT(&ctx->GX, n3); in mbedtls_dhm_make_params()
327 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->GX, output, olen)); in mbedtls_dhm_make_public()
470 mbedtls_mpi_free(&ctx->GX); in mbedtls_dhm_free()
Dssl_tls12_client.c2734 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: GX", &ssl->handshake->dhm_ctx.GX); in ssl_write_client_key_exchange()
Dssl_tls12_server.c2945 MBEDTLS_SSL_DEBUG_MPI(3, "DHM: GX", &ssl->handshake->dhm_ctx.GX); in ssl_prepare_server_key_exchange()
/mbedtls-3.7.0/tests/suites/
Dtest_suite_dhm.function61 /* Check that ctx->X and ctx->GX are within range. */
65 TEST_ASSERT(mbedtls_mpi_cmp_int(&ctx->GX, 1) > 0);
66 TEST_ASSERT(mbedtls_mpi_cmp_mpi(&ctx->GX, &ctx->P) < 0);
76 if (!check_dhm_param_output(&ctx->GX, ske, ske_len, &offset)) {
172 TEST_ASSERT(check_get_value(&ctx_cli, MBEDTLS_DHM_PARAM_GY, &ctx_srv.GX));
175 TEST_ASSERT(check_get_value(&ctx_srv, MBEDTLS_DHM_PARAM_GY, &ctx_cli.GX));
/mbedtls-3.7.0/include/mbedtls/
Ddhm.h105 mbedtls_mpi MBEDTLS_PRIVATE(GX); /*!< Our public key = \c G^X mod \c P. */
/mbedtls-3.7.0/docs/architecture/
Dalternative-implementations.md50 …_DEBUG_C` is enabled, `mbedtls_dhm_context` must have the fields `P`, `Q`, `G`, `GX`, `GY` and `K`.