Searched refs:ctx_cli (Results 1 – 2 of 2) sorted by relevance
/mbedtls-3.6.0/tests/suites/ |
D | test_suite_dhm.function | 98 mbedtls_dhm_context ctx_cli; 112 mbedtls_dhm_init(&ctx_cli); 144 TEST_ASSERT(mbedtls_dhm_read_params(&ctx_cli, &p, ske + ske_len) == 0); 146 TEST_ASSERT(check_get_value(&ctx_cli, MBEDTLS_DHM_PARAM_P, &ctx_srv.P)); 147 TEST_ASSERT(check_get_value(&ctx_cli, MBEDTLS_DHM_PARAM_G, &ctx_srv.G)); 149 TEST_ASSERT(mbedtls_dhm_make_public(&ctx_cli, x_size, pub_cli, pub_cli_len, 158 TEST_ASSERT(mbedtls_dhm_calc_secret(&ctx_cli, sec_cli, sizeof(sec_cli), 168 TEST_ASSERT(check_get_value(&ctx_cli, MBEDTLS_DHM_PARAM_X, &ctx_cli.X)); 171 TEST_ASSERT(check_get_value(&ctx_cli, MBEDTLS_DHM_PARAM_GX, &ctx_srv.GY)); 172 TEST_ASSERT(check_get_value(&ctx_cli, MBEDTLS_DHM_PARAM_GY, &ctx_srv.GX)); [all …]
|
/mbedtls-3.6.0/programs/pkey/ |
D | ecdh_curve25519.c | 36 mbedtls_ecdh_context ctx_cli, ctx_srv; in main() local 51 mbedtls_ecdh_init(&ctx_cli); in main() 79 ret = mbedtls_ecdh_setup(&ctx_cli, MBEDTLS_ECP_DP_CURVE25519); in main() 85 ret = mbedtls_ecdh_make_params(&ctx_cli, &cli_olen, cli_to_srv, in main() 127 ret = mbedtls_ecdh_read_public(&ctx_cli, srv_to_cli, in main() 143 ret = mbedtls_ecdh_calc_secret(&ctx_cli, &cli_olen, secret_cli, in main() 182 mbedtls_ecdh_free(&ctx_cli); in main()
|