Home
last modified time | relevance | path

Searched refs:dhm (Results 1 – 13 of 13) sorted by relevance

/mbedtls/programs/pkey/
A Ddh_server.c66 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()
A Ddh_client.c74 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/library/
A Ddhm.c482 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()
A DMakefile128 dhm.o \
A DCMakeLists.txt36 dhm.c
/mbedtls/programs/test/
A Dbenchmark.c513 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/include/mbedtls/
A Ddhm.h348 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/scripts/data_files/
A Dquery_config.fmt37 #include "mbedtls/dhm.h"
/mbedtls/tests/suites/
A Dtest_suite_dhm.function2 #include "mbedtls/dhm.h"
/mbedtls/programs/ssl/
A Dssl_server2.c1556 mbedtls_dhm_context dhm; in main() local
1647 mbedtls_dhm_init(&dhm); in main()
2757 if ((ret = mbedtls_dhm_parse_dhmfile(&dhm, opt.dhm_file)) != 0) { in main()
3237 ret = mbedtls_ssl_conf_dh_param_ctx(&conf, &dhm); in main()
4246 mbedtls_dhm_free(&dhm); in main()
/mbedtls/tests/scripts/
A Dall.sh2735 not grep mbedtls_dhm_ library/dhm.o
3325 not grep mbedtls_dhm_ library/dhm.o
3427 not grep mbedtls_dhm_ library/dhm.o
/mbedtls/docs/
A Dpsa-transition.md126 | `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/
A DChangeLog4904 * dhm_parse_dhm() (hence dhm_parse_dhmfile()) did not set dhm->len.

Completed in 684 milliseconds