Home
last modified time | relevance | path

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

/external/openssl/crypto/ecdh/
Dech_lib.c111 ECDH_DATA *ecdh; in ECDH_set_method() local
113 ecdh = ecdh_check(eckey); in ECDH_set_method()
115 if (ecdh == NULL) in ECDH_set_method()
119 mtmp = ecdh->meth; in ECDH_set_method()
124 if (ecdh->engine) in ECDH_set_method()
126 ENGINE_finish(ecdh->engine); in ECDH_set_method()
127 ecdh->engine = NULL; in ECDH_set_method()
130 ecdh->meth = meth; in ECDH_set_method()
259 ECDH_DATA *ecdh; in ECDH_set_ex_data() local
260 ecdh = ecdh_check(d); in ECDH_set_ex_data()
[all …]
Dech_key.c76 ECDH_DATA *ecdh = ecdh_check(eckey); in ECDH_compute_key() local
77 if (ecdh == NULL) in ECDH_compute_key()
79 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF); in ECDH_compute_key()
Dech_ossl.c83 EC_KEY *ecdh,
109 EC_KEY *ecdh, in ecdh_compute_key() argument
132 priv_key = EC_KEY_get0_private_key(ecdh); in ecdh_compute_key()
139 group = EC_KEY_get0_group(ecdh); in ecdh_compute_key()
Dech_locl.h68 int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
Decdh.h94 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
/external/openssl/ssl/
Dd1_srvr.c1035 EC_KEY *ecdh=NULL, *ecdhp; in dtls1_send_server_key_exchange() local
1168 if (s->s3->tmp.ecdh != NULL) in dtls1_send_server_key_exchange()
1170 EC_KEY_free(s->s3->tmp.ecdh); in dtls1_send_server_key_exchange()
1181 if ((ecdh = EC_KEY_dup(ecdhp)) == NULL) in dtls1_send_server_key_exchange()
1187 s->s3->tmp.ecdh=ecdh; in dtls1_send_server_key_exchange()
1188 if ((EC_KEY_get0_public_key(ecdh) == NULL) || in dtls1_send_server_key_exchange()
1189 (EC_KEY_get0_private_key(ecdh) == NULL) || in dtls1_send_server_key_exchange()
1192 if(!EC_KEY_generate_key(ecdh)) in dtls1_send_server_key_exchange()
1199 if (((group = EC_KEY_get0_group(ecdh)) == NULL) || in dtls1_send_server_key_exchange()
1200 (EC_KEY_get0_public_key(ecdh) == NULL) || in dtls1_send_server_key_exchange()
[all …]
Ds3_srvr.c916 if (s->s3->tmp.ecdh != NULL) in ssl3_check_client_hello()
918 EC_KEY_free(s->s3->tmp.ecdh); in ssl3_check_client_hello()
919 s->s3->tmp.ecdh = NULL; in ssl3_check_client_hello()
1594 EC_KEY *ecdh=NULL, *ecdhp; in ssl3_send_server_key_exchange() local
1727 if (s->s3->tmp.ecdh != NULL) in ssl3_send_server_key_exchange()
1739 if ((ecdh = EC_KEY_dup(ecdhp)) == NULL) in ssl3_send_server_key_exchange()
1745 s->s3->tmp.ecdh=ecdh; in ssl3_send_server_key_exchange()
1746 if ((EC_KEY_get0_public_key(ecdh) == NULL) || in ssl3_send_server_key_exchange()
1747 (EC_KEY_get0_private_key(ecdh) == NULL) || in ssl3_send_server_key_exchange()
1750 if(!EC_KEY_generate_key(ecdh)) in ssl3_send_server_key_exchange()
[all …]
Ds3_lib.c2989 if (s->s3->tmp.ecdh != NULL) in ssl3_free()
2990 EC_KEY_free(s->s3->tmp.ecdh); in ssl3_free()
3039 if (s->s3->tmp.ecdh != NULL) in ssl3_clear()
3041 EC_KEY_free(s->s3->tmp.ecdh); in ssl3_clear()
3042 s->s3->tmp.ecdh = NULL; in ssl3_clear()
3211 EC_KEY *ecdh = NULL; in ssl3_ctrl() local
3223 ecdh = (EC_KEY *)parg; in ssl3_ctrl()
3226 if (!EC_KEY_generate_key(ecdh)) in ssl3_ctrl()
3228 EC_KEY_free(ecdh); in ssl3_ctrl()
3235 s->cert->ecdh_tmp = ecdh; in ssl3_ctrl()
[all …]
Ds3_clnt.c1357 EC_KEY *ecdh = NULL; in ssl3_get_key_exchange() local
1691 if ((ecdh=EC_KEY_new()) == NULL) in ssl3_get_key_exchange()
1722 if (EC_KEY_set_group(ecdh, ngroup) == 0) in ssl3_get_key_exchange()
1729 group = EC_KEY_get0_group(ecdh); in ssl3_get_key_exchange()
1778 EC_KEY_set_public_key(ecdh, srvr_ecpoint); in ssl3_get_key_exchange()
1779 s->session->sess_cert->peer_ecdh_tmp=ecdh; in ssl3_get_key_exchange()
1780 ecdh=NULL; in ssl3_get_key_exchange()
1930 if (ecdh != NULL) in ssl3_get_key_exchange()
1931 EC_KEY_free(ecdh); in ssl3_get_key_exchange()
Dssltest.c531 EC_KEY *ecdh = NULL; in main() local
957 ecdh = EC_KEY_new_by_curve_name(nid); in main()
958 if (ecdh == NULL) in main()
964 SSL_CTX_set_tmp_ecdh(s_ctx, ecdh); in main()
966 EC_KEY_free(ecdh); in main()
Dssl.h1663 #define SSL_CTX_set_tmp_ecdh(ctx,ecdh) \ argument
1664 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh)
1672 #define SSL_set_tmp_ecdh(ssl,ecdh) \ argument
1673 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh)
2069 EC_KEY *(*ecdh)(SSL *ssl,int is_export,
2072 EC_KEY *(*ecdh)(SSL *ssl,int is_export,
Dssl3.h500 EC_KEY *ecdh; /* holds short lived ECDH key */ member
Dssl_lib.c3171 void SSL_CTX_set_tmp_ecdh_callback(SSL_CTX *ctx,EC_KEY *(*ecdh)(SSL *ssl,int is_export, in SSL_CTX_set_tmp_ecdh_callback()
3174 SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH_CB,(void (*)(void))ecdh); in SSL_CTX_set_tmp_ecdh_callback()
3177 void SSL_set_tmp_ecdh_callback(SSL *ssl,EC_KEY *(*ecdh)(SSL *ssl,int is_export, in SSL_set_tmp_ecdh_callback()
3180 SSL_callback_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH_CB,(void (*)(void))ecdh); in SSL_set_tmp_ecdh_callback()
/external/openssl/crypto/err/
Dopenssl.ec32 L ECDH crypto/ecdh/ecdh.h crypto/ecdh/ech_err.c
/external/openssl/include/openssl/
Decdh.h94 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh,
Dssl.h1663 #define SSL_CTX_set_tmp_ecdh(ctx,ecdh) \ argument
1664 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh)
1672 #define SSL_set_tmp_ecdh(ssl,ecdh) \ argument
1673 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh)
2069 EC_KEY *(*ecdh)(SSL *ssl,int is_export,
2072 EC_KEY *(*ecdh)(SSL *ssl,int is_export,
Dssl3.h500 EC_KEY *ecdh; /* holds short lived ECDH key */ member
/external/openssl/apps/
Ds_server.c1694 EC_KEY *ecdh=NULL; in MAIN() local
1706 ecdh = EC_KEY_new_by_curve_name(nid); in MAIN()
1707 if (ecdh == NULL) in MAIN()
1715 if (ecdh != NULL) in MAIN()
1722 ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); in MAIN()
1723 if (ecdh == NULL) in MAIN()
1731 SSL_CTX_set_tmp_ecdh(ctx,ecdh); in MAIN()
1734 SSL_CTX_set_tmp_ecdh(ctx2,ecdh); in MAIN()
1736 EC_KEY_free(ecdh); in MAIN()
/external/openssl/
DCrypto-config.mk262 crypto/ecdh/ech_err.c \
263 crypto/ecdh/ech_key.c \
264 crypto/ecdh/ech_lib.c \
265 crypto/ecdh/ech_ossl.c \
Dopenssl.config131 crypto/ecdh/Makefile \
523 crypto/ecdh/ech_err.c \
524 crypto/ecdh/ech_key.c \
525 crypto/ecdh/ech_lib.c \
526 crypto/ecdh/ech_ossl.c \
/external/openssh/
Dsshd_config.0333 ``ecdh-sha2-nistp256'', ``ecdh-sha2-nistp384'',
334 ``ecdh-sha2-nistp521'', ``diffie-hellman-group-exchange-sha256'',
Dssh_config.0414 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
Dconfigure.ac2251 #include <openssl/ecdh.h>
/external/openssl/patches/
Dchannelid.patch595 #define SSL_set_tmp_ecdh(ssl,ecdh) \
596 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh)