Home
last modified time | relevance | path

Searched refs:ecdh (Results 1 – 20 of 20) sorted by relevance

/dragonfly/crypto/libressl/crypto/ecdh/
H A Dech_lib.c104 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 …]
H A Dech_key.c85 EC_KEY *ecdh,
97 EC_KEY *ecdh, in ecdh_compute_key() argument
123 priv_key = EC_KEY_get0_private_key(ecdh); in ecdh_compute_key()
129 group = EC_KEY_get0_group(ecdh); in ecdh_compute_key()
149 buflen = ECDH_size(ecdh); in ecdh_compute_key()
213 ECDH_DATA *ecdh; in ossl_ecdh_compute_key() local
215 if ((ecdh = ecdh_check(eckey)) == NULL) in ossl_ecdh_compute_key()
217 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF); in ossl_ecdh_compute_key()
H A Dech_locl.h65 int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
/dragonfly/crypto/libressl/ssl/
H A Dssl_kex.c308 ssl_kex_generate_ecdhe_ecp(EC_KEY *ecdh, int nid) in ssl_kex_generate_ecdhe_ecp() argument
316 if (!EC_KEY_set_group(ecdh, group)) in ssl_kex_generate_ecdhe_ecp()
318 if (!EC_KEY_generate_key(ecdh)) in ssl_kex_generate_ecdhe_ecp()
330 ssl_kex_public_ecdhe_ecp(EC_KEY *ecdh, CBB *cbb) in ssl_kex_public_ecdhe_ecp() argument
338 if ((group = EC_KEY_get0_group(ecdh)) == NULL) in ssl_kex_public_ecdhe_ecp()
340 if ((point = EC_KEY_get0_public_key(ecdh)) == NULL) in ssl_kex_public_ecdhe_ecp()
368 if (!EC_KEY_set_group(ecdh, group)) in ssl_kex_peer_public_ecdhe_ecp()
376 if (!EC_KEY_set_public_key(ecdh, point)) in ssl_kex_peer_public_ecdhe_ecp()
389 ssl_kex_derive_ecdhe_ecp(EC_KEY *ecdh, EC_KEY *ecdh_peer, in ssl_kex_derive_ecdhe_ecp() argument
397 if (!EC_GROUP_check(EC_KEY_get0_group(ecdh), NULL)) in ssl_kex_derive_ecdhe_ecp()
[all …]
H A Dssl_locl.h1468 int ssl_kex_generate_ecdhe_ecp(EC_KEY *ecdh, int nid);
1469 int ssl_kex_public_ecdhe_ecp(EC_KEY *ecdh, CBB *cbb);
1470 int ssl_kex_peer_public_ecdhe_ecp(EC_KEY *ecdh, int nid, CBS *cbs);
1471 int ssl_kex_derive_ecdhe_ecp(EC_KEY *ecdh, EC_KEY *ecdh_peer,
H A Ds3_lib.c1788 _SSL_set_tmp_ecdh(SSL *s, EC_KEY *ecdh) in _SSL_set_tmp_ecdh() argument
1793 if (ecdh == NULL) in _SSL_set_tmp_ecdh()
1795 if ((group = EC_KEY_get0_group(ecdh)) == NULL) in _SSL_set_tmp_ecdh()
2228 _SSL_CTX_set_tmp_ecdh(SSL_CTX *ctx, EC_KEY *ecdh) in _SSL_CTX_set_tmp_ecdh() argument
2233 if (ecdh == NULL) in _SSL_CTX_set_tmp_ecdh()
2235 if ((group = EC_KEY_get0_group(ecdh)) == NULL) in _SSL_CTX_set_tmp_ecdh()
H A Dssl_lib.c3322 SSL_CTX_set_tmp_ecdh_callback(SSL_CTX *ctx, EC_KEY *(*ecdh)(SSL *ssl, in SSL_CTX_set_tmp_ecdh_callback()
3326 (void (*)(void))ecdh); in SSL_CTX_set_tmp_ecdh_callback()
3330 SSL_set_tmp_ecdh_callback(SSL *ssl, EC_KEY *(*ecdh)(SSL *ssl, int is_export, in SSL_set_tmp_ecdh_callback()
3333 SSL_callback_ctrl(ssl, SSL_CTRL_SET_TMP_ECDH_CB,(void (*)(void))ecdh); in SSL_set_tmp_ecdh_callback()
/dragonfly/contrib/wpa_supplicant/src/crypto/
H A Dcrypto_openssl.c1877 struct crypto_ecdh *ecdh; in crypto_ecdh_init() local
1882 ecdh = os_zalloc(sizeof(*ecdh)); in crypto_ecdh_init()
1883 if (!ecdh) in crypto_ecdh_init()
1887 if (!ecdh->ec) in crypto_ecdh_init()
1926 return ecdh; in crypto_ecdh_init()
1928 crypto_ecdh_deinit(ecdh); in crypto_ecdh_init()
1929 ecdh = NULL; in crypto_ecdh_init()
2016 ecdh->ec->bnctx)) { in crypto_ecdh_set_peerkey()
2031 if (!EC_POINT_is_on_curve(ecdh->ec->group, pub, ecdh->ec->bnctx)) { in crypto_ecdh_set_peerkey()
2091 if (ecdh) { in crypto_ecdh_deinit()
[all …]
H A Dcrypto_wolfssl.c1669 ecdh = os_zalloc(sizeof(*ecdh)); in crypto_ecdh_init()
1670 if (!ecdh) in crypto_ecdh_init()
1674 if (!ecdh->ec) in crypto_ecdh_init()
1677 ret = wc_ecc_make_key_ex(&rng, ecdh->ec->key.dp->size, &ecdh->ec->key, in crypto_ecdh_init()
1678 ecdh->ec->key.dp->id); in crypto_ecdh_init()
1685 return ecdh; in crypto_ecdh_init()
1687 crypto_ecdh_deinit(ecdh); in crypto_ecdh_init()
1688 ecdh = NULL; in crypto_ecdh_init()
1695 if (ecdh) { in crypto_ecdh_deinit()
1696 crypto_ec_deinit(ecdh->ec); in crypto_ecdh_deinit()
[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; in tls_set_conn_flags() local
3022 ecdh = EC_KEY_new_by_curve_name(NID_secp384r1); in tls_set_conn_flags()
3023 if (!ecdh || SSL_set_tmp_ecdh(ssl, ecdh) != 1) { in tls_set_conn_flags()
3024 EC_KEY_free(ecdh); in tls_set_conn_flags()
3029 EC_KEY_free(ecdh); in tls_set_conn_flags()
/dragonfly/crypto/libressl/include/openssl/
H A Decdh.h94 int ECDH_size(const EC_KEY *ecdh);
96 EC_KEY *ecdh,
H A Dssl.h986 #define SSL_CTX_set_tmp_ecdh(ctx,ecdh) \ argument
987 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh)
999 #define SSL_set_tmp_ecdh(ssl,ecdh) \ argument
1000 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh)
1494 EC_KEY *(*ecdh)(SSL *ssl, int is_export, int keylength));
1496 EC_KEY *(*ecdh)(SSL *ssl, int is_export, int keylength));
H A Dec.h1002 int (*ckey)(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
1014 int (**pck)(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
/dragonfly/crypto/libressl/crypto/ec/
H A Dec_kmeth.c232 int (*ckey)(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, in EC_KEY_METHOD_set_compute_key() argument
299 int (**pck)(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, in EC_KEY_METHOD_get_compute_key() argument
H A Dec_lcl.h462 int (*compute_key)(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
481 int ossl_ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
/dragonfly/lib/librecrypto/
H A DMakefile15 INCS+= ec.h ecdh.h ecdsa.h err.h evp.h gost.h
28 CFLAGS+= -I${LCRYPTO_SRC}/ecdh -I${LCRYPTO_SRC}/cms
280 ${LCRYPTO_SRC}/ecdh \
/dragonfly/crypto/libressl/apps/openssl/
H A Ds_server.c1391 EC_KEY *ecdh = NULL; in s_server_main() local
1399 if ((ecdh = EC_KEY_new_by_curve_name(nid)) == NULL) { in s_server_main()
1407 SSL_CTX_set_tmp_ecdh(ctx, ecdh); in s_server_main()
1409 SSL_CTX_set_tmp_ecdh(ctx2, ecdh); in s_server_main()
1410 EC_KEY_free(ecdh); in s_server_main()
/dragonfly/contrib/wpa_supplicant/src/common/
H A Ddpp.h487 struct crypto_ecdh *ecdh; member
H A Ddpp.c8284 pfs->ecdh = crypto_ecdh_init(pfs->curve->ike_group); in dpp_pfs_init()
8285 if (!pfs->ecdh) in dpp_pfs_init()
8288 pub = crypto_ecdh_get_pubkey(pfs->ecdh, 0); in dpp_pfs_init()
8322 pfs->secret = crypto_ecdh_set_peerkey(pfs->ecdh, 0, peer_ie + 2, in dpp_pfs_process()
8338 crypto_ecdh_deinit(pfs->ecdh); in dpp_pfs_free()