/dports/security/softhsm2/softhsm-2.6.1/src/lib/crypto/test/ |
H A D | ECDHTests.cpp | 50 ecdh = NULL; in setUp() 55 CPPUNIT_ASSERT(ecdh != NULL); in setUp() 60 if (ecdh != NULL) in tearDown() 94 ecdh->recycleParameters(p); in testKeyGeneration() 95 ecdh->recycleKeyPair(kp); in testKeyGeneration() 145 ecdh->recycleParameters(p); in testSerialisation() 147 ecdh->recycleKeyPair(kp); in testSerialisation() 148 ecdh->recycleKeyPair(dKP); in testSerialisation() 178 ecdh->recycleParameters(p); in testPKCS8() 179 ecdh->recycleKeyPair(kp); in testPKCS8() [all …]
|
/dports/net/p5-Socket-Class/Socket-Class-2.258/xs/sc_ssl/openssl/source/crypto/ecdh/ |
H A D | ech_lib.c | 100 ECDH_DATA *ecdh; in ECDH_set_method() local 102 ecdh = ecdh_check(eckey); in ECDH_set_method() 104 if (ecdh == NULL) in ECDH_set_method() 113 if (ecdh->engine) in ECDH_set_method() 116 ecdh->engine = NULL; in ECDH_set_method() 233 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 234 ecdh = ecdh_check(d); in ECDH_set_ex_data() 235 if (ecdh == NULL) in ECDH_set_ex_data() 242 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 243 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/games/0ad/0ad-0.0.23b-alpha/build/premake/premake5/contrib/mbedtls/programs/test/ |
H A D | benchmark.c | 239 rsa, dhm, ecdsa, ecdh; member 303 todo.ecdh = 1; in main() 707 if( todo.ecdh ) in main() 725 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 ) in main() 747 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, myrand, NULL ) != 0 ) in main() 753 ret |= mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, in main() 755 ret |= mbedtls_ecdh_compute_shared( &ecdh.grp, &z, &ecdh.Qp, &ecdh.d, in main() 771 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 || in main() 793 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, in main() 795 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, myrand, NULL ) != 0 ) in main() [all …]
|
/dports/security/gnutls/gnutls-3.6.16/lib/auth/ |
H A D | ecdhe.c | 98 pub.params[ECC_X] = session->key.proto.tls12.ecdh.x; in calc_ecdh_key() 99 pub.params[ECC_Y] = session->key.proto.tls12.ecdh.y; in calc_ecdh_key() 169 &session->key.proto.tls12.ecdh.x, in _gnutls_proc_ecdh_common_client_kx() 170 &session->key.proto.tls12.ecdh.y); in _gnutls_proc_ecdh_common_client_kx() 261 &session->key.proto.tls12.ecdh.params, 1); in _gnutls_gen_ecdh_common_client_kx_int() 268 session->key.proto.tls12.ecdh.params. in _gnutls_gen_ecdh_common_client_kx_int() 270 session->key.proto.tls12.ecdh.params. in _gnutls_gen_ecdh_common_client_kx_int() 382 &session->key.proto.tls12.ecdh.x, in _gnutls_proc_ecdh_common_server_kx() 383 &session->key.proto.tls12.ecdh.y); in _gnutls_proc_ecdh_common_server_kx() 454 session->key.proto.tls12.ecdh.params. in _gnutls_ecdh_common_print_server_kx() [all …]
|
/dports/security/tinc-devel/tinc-1.1pre18/src/ed25519/ |
H A D | ecdh.c | 34 ecdh_t *ecdh = xzalloc(sizeof(*ecdh)); in ecdh_generate_public() local 38 ed25519_create_keypair(pubkey, ecdh->private, seed); in ecdh_generate_public() 40 return ecdh; in ecdh_generate_public() 43 bool ecdh_compute_shared(ecdh_t *ecdh, const void *pubkey, void *shared) { in ecdh_compute_shared() argument 44 ed25519_key_exchange(shared, pubkey, ecdh->private); in ecdh_compute_shared() 45 free(ecdh); in ecdh_compute_shared() 49 void ecdh_free(ecdh_t *ecdh) { in ecdh_free() argument 50 free(ecdh); in ecdh_free()
|
/dports/security/openssl-unsafe/openssl-c9ba19c/crypto/ecdh/ |
H A D | ech_lib.c | 110 ECDH_DATA *ecdh; in ECDH_set_method() local 114 if (ecdh == NULL) in ECDH_set_method() 118 mtmp = ecdh->meth; in ECDH_set_method() 123 if (ecdh->engine) { in ECDH_set_method() 128 ecdh->meth = meth; in ECDH_set_method() 251 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 252 ecdh = ecdh_check(d); in ECDH_set_ex_data() 253 if (ecdh == NULL) in ECDH_set_ex_data() 260 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 261 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/devel/godot2-tools/godot-2.1.6-stable/thirdparty/openssl/crypto/ecdh/ |
H A D | ech_lib.c | 110 ECDH_DATA *ecdh; in ECDH_set_method() local 114 if (ecdh == NULL) in ECDH_set_method() 118 mtmp = ecdh->meth; in ECDH_set_method() 123 if (ecdh->engine) { in ECDH_set_method() 128 ecdh->meth = meth; in ECDH_set_method() 258 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 259 ecdh = ecdh_check(d); in ECDH_set_ex_data() 260 if (ecdh == NULL) in ECDH_set_ex_data() 267 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 268 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/devel/godot2/godot-2.1.6-stable/thirdparty/openssl/crypto/ecdh/ |
H A D | ech_lib.c | 110 ECDH_DATA *ecdh; in ECDH_set_method() local 114 if (ecdh == NULL) in ECDH_set_method() 118 mtmp = ecdh->meth; in ECDH_set_method() 123 if (ecdh->engine) { in ECDH_set_method() 128 ecdh->meth = meth; in ECDH_set_method() 258 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 259 ecdh = ecdh_check(d); in ECDH_set_ex_data() 260 if (ecdh == NULL) in ECDH_set_ex_data() 267 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 268 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/security/openssl-legacy-static/openssl-1.0.2u/crypto/ecdh/ |
H A D | ech_lib.c | 110 ECDH_DATA *ecdh; in ECDH_set_method() local 114 if (ecdh == NULL) in ECDH_set_method() 118 mtmp = ecdh->meth; in ECDH_set_method() 123 if (ecdh->engine) { in ECDH_set_method() 128 ecdh->meth = meth; in ECDH_set_method() 258 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 259 ecdh = ecdh_check(d); in ECDH_set_ex_data() 260 if (ecdh == NULL) in ECDH_set_ex_data() 267 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 268 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/sysutils/shim/shim-0.9/Cryptlib/OpenSSL/crypto/ecdh/ |
H A D | ech_lib.c | 99 ECDH_DATA *ecdh; in ECDH_set_method() local 103 if (ecdh == NULL) in ECDH_set_method() 107 if (ecdh->engine) { in ECDH_set_method() 109 ecdh->engine = NULL; in ECDH_set_method() 112 ecdh->meth = meth; in ECDH_set_method() 228 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 229 ecdh = ecdh_check(d); in ECDH_set_ex_data() 230 if (ecdh == NULL) in ECDH_set_ex_data() 237 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 238 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/security/libressl/libressl-3.4.3/crypto/ecdh/ |
H A D | ech_lib.c | 104 ECDH_DATA *ecdh; in ECDH_set_method() local 106 ecdh = ecdh_check(eckey); in ECDH_set_method() 108 if (ecdh == NULL) in ECDH_set_method() 113 ecdh->engine = NULL; in ECDH_set_method() 115 ecdh->meth = meth; in ECDH_set_method() 221 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 222 ecdh = ecdh_check(d); in ECDH_set_ex_data() 223 if (ecdh == NULL) in ECDH_set_ex_data() 231 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 232 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/security/libressl-static/libressl-3.3.5/crypto/ecdh/ |
H A D | ech_lib.c | 104 ECDH_DATA *ecdh; in ECDH_set_method() local 106 ecdh = ecdh_check(eckey); in ECDH_set_method() 108 if (ecdh == NULL) in ECDH_set_method() 113 ecdh->engine = NULL; in ECDH_set_method() 115 ecdh->meth = meth; in ECDH_set_method() 221 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 222 ecdh = ecdh_check(d); in ECDH_set_ex_data() 223 if (ecdh == NULL) in ECDH_set_ex_data() 231 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 232 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/emulators/citra/citra-ac98458e0/externals/libressl/crypto/ecdh/ |
H A D | ech_lib.c | 104 ECDH_DATA *ecdh; in ECDH_set_method() local 106 ecdh = ecdh_check(eckey); in ECDH_set_method() 108 if (ecdh == NULL) in ECDH_set_method() 113 ecdh->engine = NULL; in ECDH_set_method() 115 ecdh->meth = meth; in ECDH_set_method() 221 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 222 ecdh = ecdh_check(d); in ECDH_set_ex_data() 223 if (ecdh == NULL) in ECDH_set_ex_data() 231 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 232 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/emulators/citra-qt5/citra-ac98458e0/externals/libressl/crypto/ecdh/ |
H A D | ech_lib.c | 104 ECDH_DATA *ecdh; in ECDH_set_method() local 106 ecdh = ecdh_check(eckey); in ECDH_set_method() 108 if (ecdh == NULL) in ECDH_set_method() 113 ecdh->engine = NULL; in ECDH_set_method() 115 ecdh->meth = meth; in ECDH_set_method() 221 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 222 ecdh = ecdh_check(d); in ECDH_set_ex_data() 223 if (ecdh == NULL) in ECDH_set_ex_data() 231 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 232 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/www/obhttpd/libressl-3.4.1/crypto/ecdh/ |
H A D | ech_lib.c | 104 ECDH_DATA *ecdh; in ECDH_set_method() local 106 ecdh = ecdh_check(eckey); in ECDH_set_method() 108 if (ecdh == NULL) in ECDH_set_method() 113 ecdh->engine = NULL; in ECDH_set_method() 115 ecdh->meth = meth; in ECDH_set_method() 221 ECDH_DATA *ecdh; in ECDH_set_ex_data() local 222 ecdh = ecdh_check(d); in ECDH_set_ex_data() 223 if (ecdh == NULL) in ECDH_set_ex_data() 231 ECDH_DATA *ecdh; in ECDH_get_ex_data() local 232 ecdh = ecdh_check(d); in ECDH_get_ex_data() [all …]
|
/dports/games/0ad/0ad-0.0.23b-alpha/build/premake/premake5/contrib/mbedtls/yotta/data/example-benchmark/ |
H A D | main.cpp | 343 rsa, dhm, ecdsa, ecdh; member 407 todo.ecdh = 1; in benchmark() 817 if( todo.ecdh ) in benchmark() 835 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 ) in benchmark() 857 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, myrand, NULL ) != 0 ) in benchmark() 863 ret |= mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, in benchmark() 865 ret |= mbedtls_ecdh_compute_shared( &ecdh.grp, &z, &ecdh.Qp, &ecdh.d, in benchmark() 881 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 || in benchmark() 903 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, in benchmark() 905 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, myrand, NULL ) != 0 ) in benchmark() [all …]
|
/dports/emulators/yuzu/yuzu-0b47f7a46/externals/mbedtls/programs/test/ |
H A D | benchmark.c | 256 rsa, dhm, ecdsa, ecdh; member 334 todo.ecdh = 1; in main() 871 if( todo.ecdh ) in main() 896 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 ) in main() 921 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, myrand, NULL ) != 0 ) in main() 929 ret |= mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, in main() 931 ret |= mbedtls_ecdh_compute_shared( &ecdh.grp, &z, &ecdh.Qp, &ecdh.d, in main() 947 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 || in main() 972 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, in main() 974 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, myrand, NULL ) != 0 ) in main() [all …]
|
/dports/security/mbedtls/mbedtls-mbedtls-2.16.12/programs/test/ |
H A D | benchmark.c | 302 rsa, dhm, ecdsa, ecdh; member 381 todo.ecdh = 1; in main() 918 if( todo.ecdh ) in main() 943 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 ) in main() 968 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, myrand, NULL ) != 0 ) in main() 976 ret |= mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, in main() 978 ret |= mbedtls_ecdh_compute_shared( &ecdh.grp, &z, &ecdh.Qp, &ecdh.d, in main() 994 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 || in main() 1019 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, in main() 1021 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, myrand, NULL ) != 0 ) in main() [all …]
|
/dports/emulators/qemu/qemu-6.2.0/roms/skiboot/libstb/crypto/mbedtls/programs/test/ |
H A D | benchmark.c | 258 rsa, dhm, ecdsa, ecdh; member 348 todo.ecdh = 1; in main() 882 if( todo.ecdh ) in main() 907 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 ) in main() 932 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, myrand, NULL ) != 0 ) in main() 940 ret |= mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, in main() 942 ret |= mbedtls_ecdh_compute_shared( &ecdh.grp, &z, &ecdh.Qp, &ecdh.d, in main() 958 mbedtls_ecp_copy( &ecdh.Qp, &ecdh.Q ) != 0 || in main() 983 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Qp, in main() 985 mbedtls_ecdh_gen_public( &ecdh.grp, &ecdh.d, &ecdh.Q, myrand, NULL ) != 0 ) in main() [all …]
|
/dports/security/libressl-static/libressl-3.3.5/ssl/ |
H A D | ssl_kex.c | 67 ssl_kex_generate_ecdhe_ecp(EC_KEY *ecdh, int nid) in ssl_kex_generate_ecdhe_ecp() argument 75 if (!EC_KEY_set_group(ecdh, group)) in ssl_kex_generate_ecdhe_ecp() 77 if (!EC_KEY_generate_key(ecdh)) in ssl_kex_generate_ecdhe_ecp() 89 ssl_kex_public_ecdhe_ecp(EC_KEY *ecdh, CBB *cbb) in ssl_kex_public_ecdhe_ecp() argument 97 if ((group = EC_KEY_get0_group(ecdh)) == NULL) in ssl_kex_public_ecdhe_ecp() 99 if ((point = EC_KEY_get0_public_key(ecdh)) == NULL) in ssl_kex_public_ecdhe_ecp() 127 if (!EC_KEY_set_group(ecdh, group)) in ssl_kex_peer_public_ecdhe_ecp() 135 if (!EC_KEY_set_public_key(ecdh, point)) in ssl_kex_peer_public_ecdhe_ecp() 148 ssl_kex_derive_ecdhe_ecp(EC_KEY *ecdh, EC_KEY *ecdh_peer, in ssl_kex_derive_ecdhe_ecp() argument 156 if (!EC_GROUP_check(EC_KEY_get0_group(ecdh), NULL)) in ssl_kex_derive_ecdhe_ecp() [all …]
|
/dports/security/libressl/libressl-3.4.3/ssl/ |
H A D | ssl_kex.c | 67 ssl_kex_generate_ecdhe_ecp(EC_KEY *ecdh, int nid) 75 if (!EC_KEY_set_group(ecdh, group)) 77 if (!EC_KEY_generate_key(ecdh)) 89 ssl_kex_public_ecdhe_ecp(EC_KEY *ecdh, CBB *cbb) 97 if ((group = EC_KEY_get0_group(ecdh)) == NULL) 99 if ((point = EC_KEY_get0_public_key(ecdh)) == NULL) 127 if (!EC_KEY_set_group(ecdh, group)) 135 if (!EC_KEY_set_public_key(ecdh, point)) 148 ssl_kex_derive_ecdhe_ecp(EC_KEY *ecdh, EC_KEY *ecdh_peer, 156 if (!EC_GROUP_check(EC_KEY_get0_group(ecdh), NULL)) [all …]
|
/dports/emulators/citra/citra-ac98458e0/externals/libressl/ssl/ |
H A D | ssl_kex.c | 67 ssl_kex_generate_ecdhe_ecp(EC_KEY *ecdh, int nid) in ssl_kex_generate_ecdhe_ecp() argument 75 if (!EC_KEY_set_group(ecdh, group)) in ssl_kex_generate_ecdhe_ecp() 77 if (!EC_KEY_generate_key(ecdh)) in ssl_kex_generate_ecdhe_ecp() 89 ssl_kex_public_ecdhe_ecp(EC_KEY *ecdh, CBB *cbb) in ssl_kex_public_ecdhe_ecp() argument 97 if ((group = EC_KEY_get0_group(ecdh)) == NULL) in ssl_kex_public_ecdhe_ecp() 99 if ((point = EC_KEY_get0_public_key(ecdh)) == NULL) in ssl_kex_public_ecdhe_ecp() 127 if (!EC_KEY_set_group(ecdh, group)) in ssl_kex_peer_public_ecdhe_ecp() 135 if (!EC_KEY_set_public_key(ecdh, point)) in ssl_kex_peer_public_ecdhe_ecp() 148 ssl_kex_derive_ecdhe_ecp(EC_KEY *ecdh, EC_KEY *ecdh_peer, in ssl_kex_derive_ecdhe_ecp() argument 156 if (!EC_GROUP_check(EC_KEY_get0_group(ecdh), NULL)) in ssl_kex_derive_ecdhe_ecp() [all …]
|
/dports/emulators/citra-qt5/citra-ac98458e0/externals/libressl/ssl/ |
H A D | ssl_kex.c | 67 ssl_kex_generate_ecdhe_ecp(EC_KEY *ecdh, int nid) in ssl_kex_generate_ecdhe_ecp() argument 75 if (!EC_KEY_set_group(ecdh, group)) in ssl_kex_generate_ecdhe_ecp() 77 if (!EC_KEY_generate_key(ecdh)) in ssl_kex_generate_ecdhe_ecp() 89 ssl_kex_public_ecdhe_ecp(EC_KEY *ecdh, CBB *cbb) in ssl_kex_public_ecdhe_ecp() argument 97 if ((group = EC_KEY_get0_group(ecdh)) == NULL) in ssl_kex_public_ecdhe_ecp() 99 if ((point = EC_KEY_get0_public_key(ecdh)) == NULL) in ssl_kex_public_ecdhe_ecp() 127 if (!EC_KEY_set_group(ecdh, group)) in ssl_kex_peer_public_ecdhe_ecp() 135 if (!EC_KEY_set_public_key(ecdh, point)) in ssl_kex_peer_public_ecdhe_ecp() 148 ssl_kex_derive_ecdhe_ecp(EC_KEY *ecdh, EC_KEY *ecdh_peer, in ssl_kex_derive_ecdhe_ecp() argument 156 if (!EC_GROUP_check(EC_KEY_get0_group(ecdh), NULL)) in ssl_kex_derive_ecdhe_ecp() [all …]
|
/dports/www/obhttpd/libressl-3.4.1/ssl/ |
H A D | ssl_kex.c | 67 ssl_kex_generate_ecdhe_ecp(EC_KEY *ecdh, int nid) in ssl_kex_generate_ecdhe_ecp() argument 75 if (!EC_KEY_set_group(ecdh, group)) in ssl_kex_generate_ecdhe_ecp() 77 if (!EC_KEY_generate_key(ecdh)) in ssl_kex_generate_ecdhe_ecp() 89 ssl_kex_public_ecdhe_ecp(EC_KEY *ecdh, CBB *cbb) in ssl_kex_public_ecdhe_ecp() argument 97 if ((group = EC_KEY_get0_group(ecdh)) == NULL) in ssl_kex_public_ecdhe_ecp() 99 if ((point = EC_KEY_get0_public_key(ecdh)) == NULL) in ssl_kex_public_ecdhe_ecp() 127 if (!EC_KEY_set_group(ecdh, group)) in ssl_kex_peer_public_ecdhe_ecp() 135 if (!EC_KEY_set_public_key(ecdh, point)) in ssl_kex_peer_public_ecdhe_ecp() 148 ssl_kex_derive_ecdhe_ecp(EC_KEY *ecdh, EC_KEY *ecdh_peer, in ssl_kex_derive_ecdhe_ecp() argument 156 if (!EC_GROUP_check(EC_KEY_get0_group(ecdh), NULL)) in ssl_kex_derive_ecdhe_ecp() [all …]
|
/dports/sysutils/ucspi-ssl/host/superscript.com/net/ucspi-ssl-0.99b/src/ |
H A D | ssl_params.c | 58 EC_KEY *ecdh; in ssl_params_ecdh() local 65 ecdh = EC_KEY_new_by_curve_name(NID_secp521r1); in ssl_params_ecdh() 66 if (ecdh == NULL) { in ssl_params_ecdh() 68 ecdh = EC_KEY_new_by_curve_name(NID_secp384r1); in ssl_params_ecdh() 70 if (ecdh == NULL) { in ssl_params_ecdh() 72 ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); in ssl_params_ecdh() 74 if (ecdh != NULL) { in ssl_params_ecdh() 75 SSL_CTX_set_tmp_ecdh(ctx,ecdh); in ssl_params_ecdh() 76 EC_KEY_free(ecdh); in ssl_params_ecdh()
|