Home
last modified time | relevance | path

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

/third_party/openssl/crypto/dh/
Ddh_meth.c16 DH_METHOD *dhm = OPENSSL_zalloc(sizeof(*dhm)); in DH_meth_new() local
18 if (dhm != NULL) { in DH_meth_new()
19 dhm->flags = flags; in DH_meth_new()
21 dhm->name = OPENSSL_strdup(name); in DH_meth_new()
22 if (dhm->name != NULL) in DH_meth_new()
23 return dhm; in DH_meth_new()
25 OPENSSL_free(dhm); in DH_meth_new()
32 void DH_meth_free(DH_METHOD *dhm) in DH_meth_free() argument
34 if (dhm != NULL) { in DH_meth_free()
35 OPENSSL_free(dhm->name); in DH_meth_free()
[all …]
/third_party/openssl/include/openssl/
Ddh.h202 void DH_meth_free(DH_METHOD *dhm);
203 DH_METHOD *DH_meth_dup(const DH_METHOD *dhm);
204 const char *DH_meth_get0_name(const DH_METHOD *dhm);
205 int DH_meth_set1_name(DH_METHOD *dhm, const char *name);
206 int DH_meth_get_flags(const DH_METHOD *dhm);
207 int DH_meth_set_flags(DH_METHOD *dhm, int flags);
208 void *DH_meth_get0_app_data(const DH_METHOD *dhm);
209 int DH_meth_set0_app_data(DH_METHOD *dhm, void *app_data);
210 int (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *);
211 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key) (DH *));
[all …]
/third_party/openssl/doc/man3/
DDH_meth_new.pod19 void DH_meth_free(DH_METHOD *dhm);
21 DH_METHOD *DH_meth_dup(const DH_METHOD *dhm);
23 const char *DH_meth_get0_name(const DH_METHOD *dhm);
24 int DH_meth_set1_name(DH_METHOD *dhm, const char *name);
26 int DH_meth_get_flags(const DH_METHOD *dhm);
27 int DH_meth_set_flags(DH_METHOD *dhm, int flags);
29 void *DH_meth_get0_app_data(const DH_METHOD *dhm);
30 int DH_meth_set0_app_data(DH_METHOD *dhm, void *app_data);
32 int (*DH_meth_get_generate_key(const DH_METHOD *dhm))(DH *);
33 int DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key)(DH *));
[all …]
/third_party/mbedtls/programs/pkey/
Ddh_server.c87 mbedtls_dhm_context dhm; in main() local
94 mbedtls_dhm_init( &dhm ); in main()
171 if( mbedtls_mpi_read_file( &dhm.MBEDTLS_PRIVATE(P), 16, f ) != 0 || in main()
172 mbedtls_mpi_read_file( &dhm.MBEDTLS_PRIVATE(G), 16, f ) != 0 ) in main()
208 …if( ( ret = mbedtls_dhm_make_params( &dhm, (int) mbedtls_mpi_size( &dhm.MBEDTLS_PRIVATE(P) ), buf,… in main()
253 n = mbedtls_dhm_get_len( &dhm ); in main()
260 if( ( ret = mbedtls_dhm_read_public( &dhm, buf, n ) ) != 0 ) in main()
272 if( ( ret = mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &n, in main()
321 mbedtls_dhm_free( &dhm ); in main()
Ddh_client.c87 mbedtls_dhm_context dhm; in main() local
91 mbedtls_dhm_init( &dhm ); in main()
185 if( ( ret = mbedtls_dhm_read_params( &dhm, &p, end ) ) != 0 ) in main()
191 n = mbedtls_dhm_get_len( &dhm ); in main()
232 n = mbedtls_dhm_get_len( &dhm ); in main()
233 if( ( ret = mbedtls_dhm_make_public( &dhm, (int) n, buf, n, in main()
252 if( ( ret = mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &n, in main()
299 mbedtls_dhm_free( &dhm ); in main()
/third_party/mbedtls/library/
Ddhm.c511 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin, in mbedtls_dhm_parse_dhm() argument
521 DHM_VALIDATE_RET( dhm != NULL ); in mbedtls_dhm_parse_dhm()
568 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->P ) ) != 0 || in mbedtls_dhm_parse_dhm()
569 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm()
603 mbedtls_dhm_free( dhm ); in mbedtls_dhm_parse_dhm()
664 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path ) in mbedtls_dhm_parse_dhmfile() argument
669 DHM_VALIDATE_RET( dhm != NULL ); in mbedtls_dhm_parse_dhmfile()
675 ret = mbedtls_dhm_parse_dhm( dhm, buf, n ); in mbedtls_dhm_parse_dhmfile()
719 mbedtls_dhm_context dhm; in mbedtls_dhm_self_test() local
721 mbedtls_dhm_init( &dhm ); in mbedtls_dhm_self_test()
[all …]
DMakefile96 dhm.o \
DCMakeLists.txt31 dhm.c
/third_party/mbedtls/programs/test/
Dbenchmark.c543 rsa, dhm, ecdsa, ecdh; member
621 todo.dhm = 1; in main()
1008 if( todo.dhm ) in main()
1028 mbedtls_dhm_context dhm; in main() local
1033 mbedtls_dhm_init( &dhm ); in main()
1035 if( mbedtls_mpi_read_binary( &dhm.P, dhm_P[i], in main()
1037 mbedtls_mpi_read_binary( &dhm.G, dhm_G[i], in main()
1043 n = mbedtls_mpi_size( &dhm.P ); in main()
1044 mbedtls_dhm_make_public( &dhm, (int) n, buf, n, myrand, NULL ); in main()
1045 if( mbedtls_mpi_copy( &dhm.GY, &dhm.GX ) != 0 ) in main()
[all …]
/third_party/mbedtls/include/mbedtls/
Ddhm.h362 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin,
378 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path );
/third_party/skia/src/core/
DSkRemoteGlyphCache.cpp616 SkStrikeServerImpl::SkStrikeServerImpl(SkStrikeServer::DiscardableHandleManager* dhm) in SkStrikeServerImpl() argument
617 : fDiscardableHandleManager(dhm) { in SkStrikeServerImpl()
831 SkStrikeServer::SkStrikeServer(DiscardableHandleManager* dhm) in SkStrikeServer() argument
832 : fImpl(new SkStrikeServerImpl{dhm}) { } in SkStrikeServer()
/third_party/mbedtls/
Dmbedtls.gni56 "$MBEDTLSDIR/library/dhm.c",
DChangeLog3632 * dhm_parse_dhm() (hence dhm_parse_dhmfile()) did not set dhm->len.
/third_party/mbedtls/scripts/data_files/
Dquery_config.fmt50 #include "mbedtls/dhm.h"
/third_party/mbedtls/programs/ssl/
Dssl_server2.c1335 mbedtls_dhm_context dhm; in main() local
1426 mbedtls_dhm_init( &dhm ); in main()
2527 if( ( ret = mbedtls_dhm_parse_dhmfile( &dhm, opt.dhm_file ) ) != 0 ) in main()
2986 ret = mbedtls_ssl_conf_dh_param_ctx( &conf, &dhm ); in main()
3993 mbedtls_dhm_free( &dhm ); in main()
/third_party/mbedtls/tests/suites/
Dtest_suite_dhm.function2 #include "mbedtls/dhm.h"
/third_party/mbedtls/tests/
DCMakeLists.txt186 add_test_suite(dhm)
/third_party/tzdata/
Deurope1462 # https://www.dhm.de/lemo/html/biografien/BersarinNikolai/