/mbedtls-3.5.0/programs/pkey/ |
D | dh_server.c | 77 mbedtls_dhm_context dhm; in main() local 84 mbedtls_dhm_init(&dhm); in main() 155 if (mbedtls_mpi_read_file(&dhm.MBEDTLS_PRIVATE(P), 16, f) != 0 || in main() 156 mbedtls_mpi_read_file(&dhm.MBEDTLS_PRIVATE(G), 16, f) != 0) { in main() 190 mbedtls_dhm_make_params(&dhm, (int) mbedtls_mpi_size(&dhm.MBEDTLS_PRIVATE(P)), buf, &n, in main() 231 n = mbedtls_dhm_get_len(&dhm); in main() 237 if ((ret = mbedtls_dhm_read_public(&dhm, buf, n)) != 0) { in main() 248 if ((ret = mbedtls_dhm_calc_secret(&dhm, buf, sizeof(buf), &n, in main() 298 mbedtls_dhm_free(&dhm); in main()
|
D | dh_client.c | 77 mbedtls_dhm_context dhm; in main() local 81 mbedtls_dhm_init(&dhm); in main() 168 if ((ret = mbedtls_dhm_read_params(&dhm, &p, end)) != 0) { in main() 173 n = mbedtls_dhm_get_len(&dhm); in main() 210 n = mbedtls_dhm_get_len(&dhm); in main() 211 if ((ret = mbedtls_dhm_make_public(&dhm, (int) n, buf, n, in main() 228 if ((ret = mbedtls_dhm_calc_secret(&dhm, buf, sizeof(buf), &n, in main() 276 mbedtls_dhm_free(&dhm); in main()
|
/mbedtls-3.5.0/library/ |
D | dhm.c | 494 int mbedtls_dhm_parse_dhm(mbedtls_dhm_context *dhm, const unsigned char *dhmin, in mbedtls_dhm_parse_dhm() argument 547 if ((ret = mbedtls_asn1_get_mpi(&p, end, &dhm->P)) != 0 || in mbedtls_dhm_parse_dhm() 548 (ret = mbedtls_asn1_get_mpi(&p, end, &dhm->G)) != 0) { in mbedtls_dhm_parse_dhm() 578 mbedtls_dhm_free(dhm); in mbedtls_dhm_parse_dhm() 640 int mbedtls_dhm_parse_dhmfile(mbedtls_dhm_context *dhm, const char *path) in mbedtls_dhm_parse_dhmfile() argument 650 ret = mbedtls_dhm_parse_dhm(dhm, buf, n); in mbedtls_dhm_parse_dhmfile() 695 mbedtls_dhm_context dhm; in mbedtls_dhm_self_test() local 697 mbedtls_dhm_init(&dhm); in mbedtls_dhm_self_test() 703 if ((ret = mbedtls_dhm_parse_dhm(&dhm, in mbedtls_dhm_self_test() 719 mbedtls_dhm_free(&dhm); in mbedtls_dhm_self_test()
|
D | Makefile | 100 dhm.o \
|
D | CMakeLists.txt | 35 dhm.c
|
/mbedtls-3.5.0/programs/test/ |
D | benchmark.c | 515 rsa, dhm, ecdsa, ecdh; member 589 todo.dhm = 1; in main() 973 if (todo.dhm) { in main() 992 mbedtls_dhm_context dhm; in main() local 996 mbedtls_dhm_init(&dhm); in main() 998 if (mbedtls_mpi_read_binary(&dhm.P, dhm_P[i], in main() 1000 mbedtls_mpi_read_binary(&dhm.G, dhm_G[i], in main() 1005 n = mbedtls_mpi_size(&dhm.P); in main() 1006 mbedtls_dhm_make_public(&dhm, (int) n, buf, n, myrand, NULL); in main() 1007 if (mbedtls_mpi_copy(&dhm.GY, &dhm.GX) != 0) { in main() [all …]
|
/mbedtls-3.5.0/include/mbedtls/ |
D | dhm.h | 360 int mbedtls_dhm_parse_dhm(mbedtls_dhm_context *dhm, const unsigned char *dhmin, 376 int mbedtls_dhm_parse_dhmfile(mbedtls_dhm_context *dhm, const char *path);
|
/mbedtls-3.5.0/scripts/data_files/ |
D | query_config.fmt | 49 #include "mbedtls/dhm.h"
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_dhm.function | 2 #include "mbedtls/dhm.h"
|
/mbedtls-3.5.0/programs/ssl/ |
D | ssl_server2.c | 1515 mbedtls_dhm_context dhm; in main() local 1612 mbedtls_dhm_init(&dhm); in main() 2738 if ((ret = mbedtls_dhm_parse_dhmfile(&dhm, opt.dhm_file)) != 0) { in main() 3214 ret = mbedtls_ssl_conf_dh_param_ctx(&conf, &dhm); in main() 4211 mbedtls_dhm_free(&dhm); in main()
|
/mbedtls-3.5.0/ |
D | ChangeLog | 4323 * dhm_parse_dhm() (hence dhm_parse_dhmfile()) did not set dhm->len.
|