X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fopenssl%2Fdh.h;h=f1de53dffecf6c025b685b316795775bc2b34c1e;hb=119ab03aea4850297b2a886f067ae74ab3fba86e;hp=2d7c739eca980f8fb176deaf1b160315ceef3a36;hpb=dee502be89e78e2979e3bd1d7724cf79daa6ef61;p=oweals%2Fopenssl.git diff --git a/include/openssl/dh.h b/include/openssl/dh.h index 2d7c739eca..f1de53dffe 100644 --- a/include/openssl/dh.h +++ b/include/openssl/dh.h @@ -142,7 +142,7 @@ struct dh_st { BIGNUM *p; BIGNUM *g; long length; /* optional */ - BIGNUM *pub_key; /* g^x */ + BIGNUM *pub_key; /* g^x % p */ BIGNUM *priv_key; /* x */ int flags; BN_MONT_CTX *method_mont_p; @@ -200,6 +200,7 @@ DH *DH_new_method(ENGINE *engine); DH *DH_new(void); void DH_free(DH *dh); int DH_up_ref(DH *dh); +int DH_bits(const DH *dh); int DH_size(const DH *dh); int DH_security_bits(const DH *dh); int DH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,