Lines Matching refs:dh
323 DH *dh = NULL; in pkey_dh_paramgen() local
336 if ((dh = DH_new_by_nid(dctx->param_nid)) == NULL) in pkey_dh_paramgen()
338 EVP_PKEY_assign(pkey, type, dh); in pkey_dh_paramgen()
352 dh = ffc_params_generate(NULL, dctx, pcb); in pkey_dh_paramgen()
354 if (dh == NULL) in pkey_dh_paramgen()
356 EVP_PKEY_assign(pkey, EVP_PKEY_DHX, dh); in pkey_dh_paramgen()
359 dh = DH_new(); in pkey_dh_paramgen()
360 if (dh == NULL) { in pkey_dh_paramgen()
364 ret = DH_generate_parameters_ex(dh, in pkey_dh_paramgen()
368 EVP_PKEY_assign_DH(pkey, dh); in pkey_dh_paramgen()
370 DH_free(dh); in pkey_dh_paramgen()
377 DH *dh = NULL; in pkey_dh_keygen() local
384 dh = DH_new_by_nid(dctx->param_nid); in pkey_dh_keygen()
386 dh = DH_new(); in pkey_dh_keygen()
387 if (dh == NULL) in pkey_dh_keygen()
389 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, dh); in pkey_dh_keygen()
400 DH *dh; in pkey_dh_derive() local
409 dh = (DH *)EVP_PKEY_get0_DH(ctx->pkey); in pkey_dh_derive()
418 *keylen = DH_size(dh); in pkey_dh_derive()
422 ret = DH_compute_key_padded(key, dhpubbn, dh); in pkey_dh_derive()
424 ret = DH_compute_key(key, dhpubbn, dh); in pkey_dh_derive()
444 if ((Zlen = DH_size(dh)) <= 0) in pkey_dh_derive()
448 if (DH_compute_key_padded(Z, dhpubbn, dh) <= 0) in pkey_dh_derive()