Lines Matching defs:dh
64 #include <openssl/dh.h>
354 DH *dh = NULL;
361 dh = DH_get_1024_160();
365 dh = DH_get_2048_224();
369 dh = DH_get_2048_256();
375 EVP_PKEY_assign(pkey, EVP_PKEY_DHX, dh);
390 dh = DSA_dup_DH(dsa_dh);
392 if (!dh)
394 EVP_PKEY_assign(pkey, EVP_PKEY_DHX, dh);
398 dh = DH_new();
399 if (!dh)
401 ret = DH_generate_parameters_ex(dh,
405 EVP_PKEY_assign_DH(pkey, dh);
407 DH_free(dh);
413 DH *dh = NULL;
418 dh = DH_new();
419 if (!dh)
421 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, dh);
425 return DH_generate_key(pkey->pkey.dh);
432 DH *dh;
439 dh = ctx->pkey->pkey.dh;
440 dhpub = ctx->peerkey->pkey.dh->pub_key;
443 *keylen = DH_size(dh);
446 ret = DH_compute_key(key, dhpub, dh);
463 Zlen = DH_size(dh);
468 if (DH_compute_key_padded(Z, dhpub, dh) <= 0)