/net-tools-3.7.0/mbedtls-2.4.0/programs/pkey/ |
D | dh_client.c | 86 mbedtls_dhm_context dhm; in main() local 91 mbedtls_dhm_init( &dhm ); in main() 186 if( ( ret = mbedtls_dhm_read_params( &dhm, &p, end ) ) != 0 ) in main() 192 if( dhm.len < 64 || dhm.len > 512 ) in main() 230 n = dhm.len; in main() 231 if( ( ret = mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, n, in main() 250 if( ( ret = mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &n, in main() 291 mbedtls_dhm_free( &dhm ); in main()
|
D | dh_server.c | 86 mbedtls_dhm_context dhm; in main() local 92 mbedtls_dhm_init( &dhm ); in main() 159 if( mbedtls_mpi_read_file( &dhm.P, 16, f ) != 0 || in main() 160 mbedtls_mpi_read_file( &dhm.G, 16, f ) != 0 ) in main() 196 if( ( ret = mbedtls_dhm_make_params( &dhm, (int) mbedtls_mpi_size( &dhm.P ), buf, &n, in main() 243 if( ( ret = mbedtls_dhm_read_public( &dhm, buf, dhm.len ) ) != 0 ) in main() 255 if( ( ret = mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &n, in main() 295 mbedtls_dhm_free( &dhm ); in main()
|
/net-tools-3.7.0/mbedtls-2.4.0/programs/test/ |
D | benchmark.c | 243 rsa, dhm, ecdsa, ecdh; member 307 todo.dhm = 1; in main() 667 if( todo.dhm ) in main() 679 mbedtls_dhm_context dhm; in main() local 683 mbedtls_dhm_init( &dhm ); in main() 685 if( mbedtls_mpi_read_string( &dhm.P, 16, dhm_P[i] ) != 0 || in main() 686 mbedtls_mpi_read_string( &dhm.G, 16, dhm_G[i] ) != 0 ) in main() 691 dhm.len = mbedtls_mpi_size( &dhm.P ); in main() 692 mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, myrand, NULL ); in main() 693 if( mbedtls_mpi_copy( &dhm.GY, &dhm.GX ) != 0 ) in main() [all …]
|
/net-tools-3.7.0/mbedtls-2.4.0/yotta/data/example-benchmark/ |
D | main.cpp | 343 rsa, dhm, ecdsa, ecdh; member 403 todo.dhm = 1; in benchmark() 719 if( todo.dhm ) in benchmark() 731 mbedtls_dhm_context dhm; in benchmark() local 735 mbedtls_dhm_init( &dhm ); in benchmark() 737 if( mbedtls_mpi_read_string( &dhm.P, 16, dhm_P[i] ) != 0 || in benchmark() 738 mbedtls_mpi_read_string( &dhm.G, 16, dhm_G[i] ) != 0 ) in benchmark() 743 dhm.len = mbedtls_mpi_size( &dhm.P ); in benchmark() 744 mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, myrand, NULL ); in benchmark() 745 if( mbedtls_mpi_copy( &dhm.GY, &dhm.GX ) != 0 ) in benchmark() [all …]
|
/net-tools-3.7.0/mbedtls-2.4.0/library/ |
D | dhm.c | 415 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin, in mbedtls_dhm_parse_dhm() argument 467 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->P ) ) != 0 || in mbedtls_dhm_parse_dhm() 468 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm() 497 dhm->len = mbedtls_mpi_size( &dhm->P ); in mbedtls_dhm_parse_dhm() 504 mbedtls_dhm_free( dhm ); in mbedtls_dhm_parse_dhm() 562 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path ) in mbedtls_dhm_parse_dhmfile() argument 571 ret = mbedtls_dhm_parse_dhm( dhm, buf, n ); in mbedtls_dhm_parse_dhmfile() 598 mbedtls_dhm_context dhm; in mbedtls_dhm_self_test() local 600 mbedtls_dhm_init( &dhm ); in mbedtls_dhm_self_test() 605 if( ( ret = mbedtls_dhm_parse_dhm( &dhm, in mbedtls_dhm_self_test() [all …]
|
D | Makefile | 52 dhm.o ecdh.o ecdsa.o \
|
D | CMakeLists.txt | 21 dhm.c
|
/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/ |
D | dhm.h | 277 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin, 290 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path );
|
/net-tools-3.7.0/mbedtls-2.4.0/programs/ssl/ |
D | ssl_server2.c | 817 mbedtls_dhm_context dhm; in main() local 859 mbedtls_dhm_init( &dhm ); in main() 1550 if( ( ret = mbedtls_dhm_parse_dhmfile( &dhm, opt.dhm_file ) ) != 0 ) in main() 1813 ret = mbedtls_ssl_conf_dh_param_ctx( &conf, &dhm ); in main() 2282 mbedtls_dhm_free( &dhm ); in main() 2298 mbedtls_dhm_free( &dhm ); in main()
|
/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_dhm.function | 2 #include "mbedtls/dhm.h"
|
/net-tools-3.7.0/mbedtls-2.4.0/tests/ |
D | CMakeLists.txt | 68 add_test_suite(dhm)
|
/net-tools-3.7.0/mbedtls-2.4.0/ |
D | ChangeLog | 872 * dhm_parse_dhm() (hence dhm_parse_dhmfile()) did not set dhm->len.
|