Home
last modified time | relevance | path

Searched refs:dhp (Results 1 – 5 of 5) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DDHBasicKeyPairGenerator.java33 DHParameters dhp = param.getParameters(); in generateKeyPair() local
35 BigInteger x = helper.calculatePrivate(dhp, param.getRandom()); in generateKeyPair()
36 BigInteger y = helper.calculatePublic(dhp, x); in generateKeyPair()
39 new DHPublicKeyParameters(y, dhp), in generateKeyPair()
40 new DHPrivateKeyParameters(x, dhp)); in generateKeyPair()
/external/openssl/ssl/
Dd1_srvr.c1049 DH *dh=NULL,*dhp; in dtls1_send_server_key_exchange() local
1112 dhp=cert->dh_tmp; in dtls1_send_server_key_exchange()
1113 if ((dhp == NULL) && (s->cert->dh_tmp_cb != NULL)) in dtls1_send_server_key_exchange()
1114 dhp=s->cert->dh_tmp_cb(s, in dtls1_send_server_key_exchange()
1117 if (dhp == NULL) in dtls1_send_server_key_exchange()
1131 if ((dh=DHparams_dup(dhp)) == NULL) in dtls1_send_server_key_exchange()
1138 if ((dhp->pub_key == NULL || in dtls1_send_server_key_exchange()
1139 dhp->priv_key == NULL || in dtls1_send_server_key_exchange()
1151 dh->pub_key=BN_dup(dhp->pub_key); in dtls1_send_server_key_exchange()
1152 dh->priv_key=BN_dup(dhp->priv_key); in dtls1_send_server_key_exchange()
Ds3_srvr.c1618 DH *dh=NULL,*dhp; in ssl3_send_server_key_exchange() local
1699 dhp=cert->dh_tmp; in ssl3_send_server_key_exchange()
1700 if ((dhp == NULL) && (s->cert->dh_tmp_cb != NULL)) in ssl3_send_server_key_exchange()
1701 dhp=s->cert->dh_tmp_cb(s, in ssl3_send_server_key_exchange()
1704 if (dhp == NULL) in ssl3_send_server_key_exchange()
1717 if ((dh=DHparams_dup(dhp)) == NULL) in ssl3_send_server_key_exchange()
1724 if ((dhp->pub_key == NULL || in ssl3_send_server_key_exchange()
1725 dhp->priv_key == NULL || in ssl3_send_server_key_exchange()
1737 dh->pub_key=BN_dup(dhp->pub_key); in ssl3_send_server_key_exchange()
1738 dh->priv_key=BN_dup(dhp->priv_key); in ssl3_send_server_key_exchange()
/external/chromium_org/third_party/boringssl/src/ssl/
Ds3_srvr.c1272 DH *dh=NULL,*dhp; in ssl3_send_server_key_exchange() local
1316 dhp=cert->dh_tmp; in ssl3_send_server_key_exchange()
1317 if ((dhp == NULL) && (s->cert->dh_tmp_cb != NULL)) in ssl3_send_server_key_exchange()
1318 dhp=s->cert->dh_tmp_cb(s, 0, 1024); in ssl3_send_server_key_exchange()
1319 if (dhp == NULL) in ssl3_send_server_key_exchange()
1332 if ((dh=DHparams_dup(dhp)) == NULL) in ssl3_send_server_key_exchange()
1339 if ((dhp->pub_key == NULL || in ssl3_send_server_key_exchange()
1340 dhp->priv_key == NULL || in ssl3_send_server_key_exchange()
1351 dh->pub_key=BN_dup(dhp->pub_key); in ssl3_send_server_key_exchange()
1352 dh->priv_key=BN_dup(dhp->priv_key); in ssl3_send_server_key_exchange()
/external/openssl/patches/
D0011-ecdhe_psk.patch721 dhp=cert->dh_tmp;
722 if ((dhp == NULL) && (s->cert->dh_tmp_cb != NULL))