Home | History | Annotate | Download | only in dh

Lines Matching refs:pkey

67 /* DH pkey context structure */
161 static int pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
180 EVP_PKEY_assign_DH(pkey, dh);
186 static int pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
189 if (ctx->pkey == NULL)
197 EVP_PKEY_assign_DH(pkey, dh);
198 /* Note: if error return, pkey is freed by parent routine */
199 if (!EVP_PKEY_copy_parameters(pkey, ctx->pkey))
201 return DH_generate_key(pkey->pkey.dh);
207 if (!ctx->pkey || !ctx->peerkey)
212 ret = DH_compute_key(key, ctx->peerkey->pkey.dh->pub_key,
213 ctx->pkey->pkey.dh);