Searched defs:ecdh (Results 1 - 11 of 11) sorted by relevance

/external/openssl/crypto/ecdh/
H A Dech_key.c1 /* crypto/ecdh/ecdh_key.c */
79 ECDH_DATA *ecdh = ecdh_check(eckey); local
80 if (ecdh == NULL)
82 return ecdh->meth->compute_key(out, outlen, pub_key, eckey, KDF);
H A Dech_ossl.c1 /* crypto/ecdh/ech_ossl.c */
83 EC_KEY *ecdh,
109 EC_KEY *ecdh,
132 priv_key = EC_KEY_get0_private_key(ecdh);
139 group = EC_KEY_get0_group(ecdh);
108 ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)) argument
H A Dech_lib.c1 /* crypto/ecdh/ech_lib.c */
111 ECDH_DATA *ecdh; local
113 ecdh = ecdh_check(eckey);
115 if (ecdh == NULL)
119 mtmp = ecdh->meth;
124 if (ecdh->engine)
126 ENGINE_finish(ecdh->engine);
127 ecdh->engine = NULL;
130 ecdh->meth = meth;
252 ECDH_DATA *ecdh; local
261 ECDH_DATA *ecdh; local
[all...]
/external/openssl/ssl/
H A Dd1_srvr.c1035 EC_KEY *ecdh=NULL, *ecdhp; local
1168 if (s->s3->tmp.ecdh != NULL)
1170 EC_KEY_free(s->s3->tmp.ecdh);
1181 if ((ecdh = EC_KEY_dup(ecdhp)) == NULL)
1187 s->s3->tmp.ecdh=ecdh;
1188 if ((EC_KEY_get0_public_key(ecdh) == NULL) ||
1189 (EC_KEY_get0_private_key(ecdh) == NULL) ||
1192 if(!EC_KEY_generate_key(ecdh))
1199 if (((group = EC_KEY_get0_group(ecdh))
[all...]
H A Ds3_lib.c2984 if (s->s3->tmp.ecdh != NULL)
2985 EC_KEY_free(s->s3->tmp.ecdh);
3034 if (s->s3->tmp.ecdh != NULL)
3036 EC_KEY_free(s->s3->tmp.ecdh);
3037 s->s3->tmp.ecdh = NULL;
3202 EC_KEY *ecdh = NULL; local
3214 ecdh = (EC_KEY *)parg;
3217 if (!EC_KEY_generate_key(ecdh))
3219 EC_KEY_free(ecdh);
3226 s->cert->ecdh_tmp = ecdh;
3505 EC_KEY *ecdh = NULL; local
[all...]
H A Ds3_clnt.c1336 EC_KEY *ecdh = NULL; local
1670 if ((ecdh=EC_KEY_new()) == NULL)
1701 if (EC_KEY_set_group(ecdh, ngroup) == 0)
1708 group = EC_KEY_get0_group(ecdh);
1757 EC_KEY_set_public_key(ecdh, srvr_ecpoint);
1758 s->session->sess_cert->peer_ecdh_tmp=ecdh;
1759 ecdh=NULL;
1909 if (ecdh != NULL)
1910 EC_KEY_free(ecdh);
H A Ds3_srvr.c902 if (s->s3->tmp.ecdh != NULL)
904 EC_KEY_free(s->s3->tmp.ecdh);
905 s->s3->tmp.ecdh = NULL;
1567 EC_KEY *ecdh=NULL, *ecdhp; local
1700 if (s->s3->tmp.ecdh != NULL)
1712 if ((ecdh = EC_KEY_dup(ecdhp)) == NULL)
1718 s->s3->tmp.ecdh=ecdh;
1719 if ((EC_KEY_get0_public_key(ecdh) == NULL) ||
1720 (EC_KEY_get0_private_key(ecdh)
[all...]
H A Dssltest.c537 EC_KEY *ecdh = NULL; local
986 ecdh = EC_KEY_new_by_curve_name(nid);
987 if (ecdh == NULL)
993 SSL_CTX_set_tmp_ecdh(s_ctx, ecdh);
995 EC_KEY_free(ecdh);
H A Dssl3.h510 EC_KEY *ecdh; /* holds short lived ECDH key */ member in struct:ssl3_state_st::__anon9935
/external/openssl/apps/
H A Ds_server.c1687 EC_KEY *ecdh=NULL; local
1699 ecdh = EC_KEY_new_by_curve_name(nid);
1700 if (ecdh == NULL)
1708 if (ecdh != NULL)
1715 ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
1716 if (ecdh == NULL)
1724 SSL_CTX_set_tmp_ecdh(ctx,ecdh);
1727 SSL_CTX_set_tmp_ecdh(ctx2,ecdh);
1729 EC_KEY_free(ecdh);
/external/openssl/include/openssl/
H A Dssl3.h510 EC_KEY *ecdh; /* holds short lived ECDH key */ member in struct:ssl3_state_st::__anon9922

Completed in 280 milliseconds