Searched refs:ecdh (Results 1 - 25 of 25) sorted by relevance

/freebsd-13-stable/crypto/openssl/crypto/ec/
H A Decdh_ossl.c23 const EC_POINT *pub_key, const EC_KEY *ecdh)
25 if (ecdh->group->meth->ecdh_compute_key == NULL) {
30 return ecdh->group->meth->ecdh_compute_key(psec, pseclen, pub_key, ecdh);
39 const EC_POINT *pub_key, const EC_KEY *ecdh)
59 priv_key = EC_KEY_get0_private_key(ecdh);
65 group = EC_KEY_get0_group(ecdh);
67 if (EC_KEY_get_flags(ecdh) & EC_FLAG_COFACTOR_ECDH) {
22 ossl_ecdh_compute_key(unsigned char **psec, size_t *pseclen, const EC_POINT *pub_key, const EC_KEY *ecdh) argument
38 ecdh_simple_compute_key(unsigned char **pout, size_t *poutlen, const EC_POINT *pub_key, const EC_KEY *ecdh) argument
H A Dec_kmeth.c201 const EC_KEY *ecdh))
275 const EC_KEY *ecdh))
197 EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth, int (*ckey)(unsigned char **psec, size_t *pseclen, const EC_POINT *pub_key, const EC_KEY *ecdh)) argument
271 EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth, int (**pck)(unsigned char **pout, size_t *poutlen, const EC_POINT *pub_key, const EC_KEY *ecdh)) argument
H A Dec_local.h181 const EC_POINT *pub_key, const EC_KEY *ecdh);
615 const EC_POINT *pub_key, const EC_KEY *ecdh);
635 const EC_POINT *pub_key, const EC_KEY *ecdh);
637 const EC_POINT *pub_key, const EC_KEY *ecdh);
/freebsd-13-stable/kerberos5/include/
H A Dcrypto-headers.h20 #include <openssl/ecdh.h>
/freebsd-13-stable/crypto/heimdal/include/
H A Dcrypto-headers.h27 #include <openssl/ecdh.h>
53 #include <hcrypto/ecdh.h>
/freebsd-13-stable/crypto/heimdal/include/hcrypto/
H A DMakefile.am13 ecdh.h \
H A DMakefile.in353 ecdh.h \
/freebsd-13-stable/contrib/netbsd-tests/crypto/libcrypto/
H A Dt_pubkey.sh70 atf_test_case ecdh
107 atf_add_test_case ecdh
/freebsd-13-stable/contrib/wpa/src/crypto/
H A Dcrypto_wolfssl.c1662 struct crypto_ecdh *ecdh = NULL; local
1669 ecdh = os_zalloc(sizeof(*ecdh));
1670 if (!ecdh)
1673 ecdh->ec = crypto_ec_init(group);
1674 if (!ecdh->ec)
1677 ret = wc_ecc_make_key_ex(&rng, ecdh->ec->key.dp->size, &ecdh->ec->key,
1678 ecdh->ec->key.dp->id);
1685 return ecdh;
1693 crypto_ecdh_deinit(struct crypto_ecdh *ecdh) argument
1702 crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y) argument
1734 crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y, const u8 *key, size_t len) argument
[all...]
H A Dcrypto_openssl.c1877 struct crypto_ecdh *ecdh; local
1882 ecdh = os_zalloc(sizeof(*ecdh));
1883 if (!ecdh)
1886 ecdh->ec = crypto_ec_init(group);
1887 if (!ecdh->ec)
1890 ec_params = EC_KEY_new_by_curve_name(ecdh->ec->nid);
1915 if (EVP_PKEY_keygen(kctx, &ecdh->pkey) != 1) {
1926 return ecdh;
1928 crypto_ecdh_deinit(ecdh);
1934 crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y) argument
1994 crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y, const u8 *key, size_t len) argument
2089 crypto_ecdh_deinit(struct crypto_ecdh *ecdh) argument
[all...]
H A Dcrypto.h881 struct wpabuf * crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y);
882 struct wpabuf * crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y,
884 void crypto_ecdh_deinit(struct crypto_ecdh *ecdh);
H A Dtls_openssl.c2999 EC_KEY *ecdh; local
3022 ecdh = EC_KEY_new_by_curve_name(NID_secp384r1);
3023 if (!ecdh || SSL_set_tmp_ecdh(ssl, ecdh) != 1) {
3024 EC_KEY_free(ecdh);
3029 EC_KEY_free(ecdh);
/freebsd-13-stable/crypto/openssh/
H A Dkexecdh.c39 #include <openssl/ecdh.h>
H A Dkexecdhs.c35 #include <openssl/ecdh.h>
H A Dkexecdhc.c37 #include <openssl/ecdh.h>
/freebsd-13-stable/crypto/heimdal/kdc/
H A Dpkinit.c60 } ecdh; member in union:pk_client_params::__anon6707
186 if (cp->u.ecdh.key)
187 EC_KEY_free(cp->u.ecdh.key);
188 if (cp->u.ecdh.public_key)
189 EC_KEY_free(cp->u.ecdh.public_key);
256 if (client_params->u.ecdh.public_key == NULL) {
262 client_params->u.ecdh.key = EC_KEY_new();
263 if (client_params->u.ecdh.key == NULL) {
267 EC_KEY_set_group(client_params->u.ecdh.key,
268 EC_KEY_get0_group(client_params->u.ecdh
[all...]
/freebsd-13-stable/crypto/openssl/ssl/
H A Dssl_conf.c228 EC_KEY *ecdh; local
245 ecdh = EC_KEY_new_by_curve_name(nid);
246 if (!ecdh)
249 rv = SSL_CTX_set_tmp_ecdh(cctx->ctx, ecdh);
251 rv = SSL_set_tmp_ecdh(cctx->ssl, ecdh);
252 EC_KEY_free(ecdh);
/freebsd-13-stable/contrib/unbound/util/
H A Dnet_help.c984 EC_KEY *ecdh = EC_KEY_new_by_curve_name (NID_X9_62_prime256v1); local
985 if (!ecdh) {
988 if (1 != SSL_CTX_set_tmp_ecdh (ctx, ecdh)) {
991 EC_KEY_free (ecdh);
/freebsd-13-stable/crypto/openssl/include/openssl/
H A Dec.h1123 const EC_KEY *ecdh,
1299 const EC_KEY *ecdh));
1343 const EC_KEY *ecdh));
H A Dssl.h1331 # define SSL_CTX_set_tmp_ecdh(ctx,ecdh) \
1332 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))
1339 # define SSL_set_tmp_ecdh(ssl,ecdh) \
1340 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))
/freebsd-13-stable/contrib/sendmail/src/
H A Dtls.c1336 EC_KEY *ecdh; local
1445 ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
1446 if (ecdh != NULL)
1449 SSL_CTX_set_tmp_ecdh(*ctx, ecdh);
1450 EC_KEY_free(ecdh);
/freebsd-13-stable/contrib/wpa/src/common/
H A Ddpp.h487 struct crypto_ecdh *ecdh; member in struct:dpp_pfs
H A Ddpp.c8284 pfs->ecdh = crypto_ecdh_init(pfs->curve->ike_group);
8285 if (!pfs->ecdh)
8288 pub = crypto_ecdh_get_pubkey(pfs->ecdh, 0);
8322 pfs->secret = crypto_ecdh_set_peerkey(pfs->ecdh, 0, peer_ie + 2,
8338 crypto_ecdh_deinit(pfs->ecdh);
/freebsd-13-stable/secure/lib/libcrypto/
H A DMakefile403 INCS+= dsaerr.h dtls1.h e_os2.h ebcdic.h ec.h ecdh.h ecdsa.h ecerr.h
/freebsd-13-stable/crypto/openssl/apps/
H A Dspeed.c125 int ecdh; member in struct:openssl_speed_sec_st
1641 = seconds.ecdh = seconds.eddsa = atoi(opt_arg());
1716 if (strcmp(*argv, "ecdh") == 0) {
3069 pkey_print_message("", "ecdh",
3071 test_curves[testnum].bits, seconds.ecdh);
3322 printf("%4u bits ecdh (%s) %8.4fs %8.1f\n",

Completed in 203 milliseconds