[OpenBSD]

Manual Page Search Parameters
DH(3) Library Functions Manual DH(3)

NAME

dhDiffie-Hellman key agreement

SYNOPSIS

#include <openssl/dh.h>

DESCRIPTION

These functions implement the Diffie-Hellman key agreement protocol. The generation of shared DH parameters is described in DH_generate_parameters(3); DH_generate_key(3) describes how to perform a key agreement.
The DH structure consists of several BIGNUM components.
typedef struct { 
	BIGNUM *p;		// prime number (shared) 
	BIGNUM *g;		// generator of Z_p (shared) 
	BIGNUM *priv_key;	// private DH value x 
	BIGNUM *pub_key;	// public DH value g^x 
	// ... 
} DH;
Note that DH keys may use non-standard DH_METHOD implementations, either directly or by the use of ENGINE modules. In some cases (e.g. an ENGINE providing support for hardware-embedded keys), these BIGNUM values will not be used by the implementation or may be used for alternative data storage. For this reason, applications should generally avoid using DH structure elements directly and instead use API functions to query or modify keys.

SEE ALSO

bn(3), d2i_DHparams(3), DH_generate_key(3), DH_generate_parameters(3), DH_get_ex_new_index(3), DH_new(3), DH_set_method(3), DH_size(3), DHparams_print(3), dsa(3), DSA_dup_DH(3), engine(3), ERR(3), rsa(3)
November 6, 2016 OpenBSD-current