![]() | ![]() | ||||||||||||||
| |||||||||||||||
| DH_set_method(3)
NAMEDH_set_default_method, DH_get_default_method, DH_set_method, DH_new_method, DH_OpenSSL - select DH method
SYNOPSIS#include <openssl/dh.h> void DH_set_default_method(DH_METHOD *meth); DH_METHOD *DH_get_default_method(void); DH_METHOD *DH_set_method(DH *dh, DH_METHOD *meth); DH *DH_new_method(DH_METHOD *meth); DH_METHOD *DH_OpenSSL(void);
DESCRIPTIONA DH_METHOD specifies the functions that OpenSSL uses for Diffie-Hellman operations. By modifying the method, alternative implementations such as hardware accelerators may be used.
Initially, the default is to use the OpenSSL internal implementation.
THE DH_METHOD STRUCTURE typedef struct dh_meth_st
{
const char *name;
int (*generate_key)(DH *dh);
int (*compute_key)(unsigned char *key, BIGNUM *pub_key, DH *dh);
int (*bn_mod_exp)(DH *dh, BIGNUM *r, BIGNUM *a, const BIGNUM *p,
const BIGNUM *m, BN_CTX *ctx,
BN_MONT_CTX *m_ctx);
int (*init)(DH *dh);
int (*finish)(DH *dh);
int flags; char *app_data; } DH_METHOD;
RETURN VALUES
SEE ALSO
HISTORY
| ||||||||||||||