Home
last modified time | relevance | path

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

/mbedtls-latest/programs/pkey/
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()
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-latest/library/
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()
DMakefile110 dhm.o \
DCMakeLists.txt36 dhm.c
/mbedtls-latest/programs/test/
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-latest/include/mbedtls/
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-latest/scripts/data_files/
Dquery_config.fmt37 #include "mbedtls/dhm.h"
/mbedtls-latest/programs/ssl/
Dssl_server2.c1557 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/
Dtest_suite_dhm.function2 #include "mbedtls/dhm.h"
/mbedtls-latest/tests/scripts/
Dcomponents-configuration-crypto.sh931 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/
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-latest/
DChangeLog69 - 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.