Home
last modified time | relevance | path

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

/external/bouncycastle/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.c871 DH *dh=NULL,*dhp; in dtls1_send_server_key_exchange() local
934 dhp=cert->dh_tmp; in dtls1_send_server_key_exchange()
935 if ((dhp == NULL) && (s->cert->dh_tmp_cb != NULL)) in dtls1_send_server_key_exchange()
936 dhp=s->cert->dh_tmp_cb(s, in dtls1_send_server_key_exchange()
939 if (dhp == NULL) in dtls1_send_server_key_exchange()
953 if ((dh=DHparams_dup(dhp)) == NULL) in dtls1_send_server_key_exchange()
960 if ((dhp->pub_key == NULL || in dtls1_send_server_key_exchange()
961 dhp->priv_key == NULL || in dtls1_send_server_key_exchange()
973 dh->pub_key=BN_dup(dhp->pub_key); in dtls1_send_server_key_exchange()
974 dh->priv_key=BN_dup(dhp->priv_key); in dtls1_send_server_key_exchange()
Ds3_srvr.c1424 DH *dh=NULL,*dhp; in ssl3_send_server_key_exchange() local
1487 dhp=cert->dh_tmp; in ssl3_send_server_key_exchange()
1488 if ((dhp == NULL) && (s->cert->dh_tmp_cb != NULL)) in ssl3_send_server_key_exchange()
1489 dhp=s->cert->dh_tmp_cb(s, in ssl3_send_server_key_exchange()
1492 if (dhp == NULL) in ssl3_send_server_key_exchange()
1506 if ((dh=DHparams_dup(dhp)) == NULL) in ssl3_send_server_key_exchange()
1513 if ((dhp->pub_key == NULL || in ssl3_send_server_key_exchange()
1514 dhp->priv_key == NULL || in ssl3_send_server_key_exchange()
1526 dh->pub_key=BN_dup(dhp->pub_key); in ssl3_send_server_key_exchange()
1527 dh->priv_key=BN_dup(dhp->priv_key); in ssl3_send_server_key_exchange()