/mbedtls-latest/programs/pkey/ |
D | dh_server.c | 66 mbedtls_dhm_context dhm; in main() local 73 mbedtls_dhm_init(&dhm); in main() 146 (ret = mbedtls_dhm_set_group(&dhm, &dhm_P, &dhm_G) != 0)) { in main() 180 mbedtls_dhm_make_params(&dhm, (int) mbedtls_dhm_get_len(&dhm), buf, &n, in main() 230 n = mbedtls_dhm_get_len(&dhm); in main() 236 if ((ret = mbedtls_dhm_read_public(&dhm, buf, n)) != 0) { in main() 247 if ((ret = mbedtls_dhm_calc_secret(&dhm, buf, sizeof(buf), &n, in main() 298 mbedtls_dhm_free(&dhm); in main()
|
D | dh_client.c | 74 mbedtls_dhm_context dhm; in main() local 78 mbedtls_dhm_init(&dhm); in main() 164 if ((ret = mbedtls_dhm_read_params(&dhm, &p, end)) != 0) { in main() 169 n = mbedtls_dhm_get_len(&dhm); in main() 212 n = mbedtls_dhm_get_len(&dhm); in main() 213 if ((ret = mbedtls_dhm_make_public(&dhm, (int) n, buf, n, in main() 230 if ((ret = mbedtls_dhm_calc_secret(&dhm, buf, sizeof(buf), &n, in main() 278 mbedtls_dhm_free(&dhm); in main()
|
/mbedtls-latest/library/ |
D | dhm.c | 482 int mbedtls_dhm_parse_dhm(mbedtls_dhm_context *dhm, const unsigned char *dhmin, in mbedtls_dhm_parse_dhm() argument 535 if ((ret = mbedtls_asn1_get_mpi(&p, end, &dhm->P)) != 0 || in mbedtls_dhm_parse_dhm() 536 (ret = mbedtls_asn1_get_mpi(&p, end, &dhm->G)) != 0) { in mbedtls_dhm_parse_dhm() 566 mbedtls_dhm_free(dhm); in mbedtls_dhm_parse_dhm() 627 int mbedtls_dhm_parse_dhmfile(mbedtls_dhm_context *dhm, const char *path) in mbedtls_dhm_parse_dhmfile() argument 637 ret = mbedtls_dhm_parse_dhm(dhm, buf, n); in mbedtls_dhm_parse_dhmfile() 681 mbedtls_dhm_context dhm; in mbedtls_dhm_self_test() local 683 mbedtls_dhm_init(&dhm); in mbedtls_dhm_self_test() 689 if ((ret = mbedtls_dhm_parse_dhm(&dhm, in mbedtls_dhm_self_test() 705 mbedtls_dhm_free(&dhm); in mbedtls_dhm_self_test()
|
D | Makefile | 110 dhm.o \
|
D | CMakeLists.txt | 36 dhm.c
|
/mbedtls-latest/programs/test/ |
D | benchmark.c | 513 rsa, dhm, ecdsa, ecdh; member 601 todo.dhm = 1; in main() 1068 if (todo.dhm) { in main() 1087 mbedtls_dhm_context dhm; in main() local 1094 mbedtls_dhm_init(&dhm); in main() 1100 mbedtls_dhm_set_group(&dhm, &P, &G) != 0) { in main() 1104 n = mbedtls_dhm_get_len(&dhm); in main() 1105 mbedtls_dhm_make_public(&dhm, (int) n, buf, n, myrand, NULL); in main() 1107 if (mbedtls_dhm_read_public(&dhm, buf, n) != 0) { in main() 1113 ret |= mbedtls_dhm_make_public(&dhm, (int) n, buf, n, in main() [all …]
|
/mbedtls-latest/include/mbedtls/ |
D | dhm.h | 348 int mbedtls_dhm_parse_dhm(mbedtls_dhm_context *dhm, const unsigned char *dhmin, 364 int mbedtls_dhm_parse_dhmfile(mbedtls_dhm_context *dhm, const char *path);
|
/mbedtls-latest/scripts/data_files/ |
D | query_config.fmt | 37 #include "mbedtls/dhm.h"
|
/mbedtls-latest/programs/ssl/ |
D | ssl_server2.c | 1557 mbedtls_dhm_context dhm; in main() local 1648 mbedtls_dhm_init(&dhm); in main() 2766 if ((ret = mbedtls_dhm_parse_dhmfile(&dhm, opt.dhm_file)) != 0) { in main() 3246 ret = mbedtls_ssl_conf_dh_param_ctx(&conf, &dhm); in main() 4256 mbedtls_dhm_free(&dhm); in main()
|
/mbedtls-latest/tests/suites/ |
D | test_suite_dhm.function | 2 #include "mbedtls/dhm.h"
|
/mbedtls-latest/tests/scripts/ |
D | components-configuration-crypto.sh | 931 not grep mbedtls_dhm_ library/dhm.o 1521 not grep mbedtls_dhm_ library/dhm.o 1623 not grep mbedtls_dhm_ library/dhm.o
|
/mbedtls-latest/docs/ |
D | psa-transition.md | 126 | `dhm.h` | `mbedtls_dhm_` | [Asymmetric cryptography](#asymmetric-cryptography) | 1076 … API has a generic interface for key agreement, covering the main use of both `ecdh.h` and `dhm.h`.
|
/mbedtls-latest/ |
D | ChangeLog | 69 - Asymmetric cryptography: bignum.h, dhm.h, ecdh.h, ecdsa.h, ecjpake.h, 5099 * dhm_parse_dhm() (hence dhm_parse_dhmfile()) did not set dhm->len.
|