X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=doc%2Fcrypto%2FDH_set_method.pod;h=b9a61d542bd3acc6281fe0adad438ca783796318;hp=b50bf42a56b3212aa39c492edc6f54fa6a6992f8;hb=8fdec3e558bef68b3ec4008e859ccd433e9fb13a;hpb=4486d0cd7a715aed7ca3728aa24413d91666bb68 diff --git a/doc/crypto/DH_set_method.pod b/doc/crypto/DH_set_method.pod index b50bf42a56..b9a61d542b 100644 --- a/doc/crypto/DH_set_method.pod +++ b/doc/crypto/DH_set_method.pod @@ -3,7 +3,7 @@ =head1 NAME DH_set_default_method, DH_get_default_method, DH_set_method, -DH_new_method, DH_OpenSSL - Select RSA method +DH_new_method, DH_OpenSSL - select DH method =head1 SYNOPSIS @@ -36,9 +36,6 @@ method. DH_set_method() selects B for all operations using the structure B. -DH_get_method() returns a pointer to the method currently selected -for B. - DH_new_method() allocates and initializes a B structure so that B will be used for the DH operations. If B is B, the default method is used. @@ -56,7 +53,7 @@ the default method is used. /* compute shared secret */ int (*compute_key)(unsigned char *key, BIGNUM *pub_key, DH *dh); - /* compute r = a ^ p mod m. May be NULL */ + /* compute r = a ^ p mod m (May be NULL for some implementations) */ int (*bn_mod_exp)(DH *dh, BIGNUM *r, BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); @@ -75,8 +72,8 @@ the default method is used. =head1 RETURN VALUES -DH_OpenSSL(), DH_get_default_method() and DH_get_method() return -pointers to the respective Bs. +DH_OpenSSL() and DH_get_default_method() return pointers to the respective +Bs. DH_set_default_method() returns no value. @@ -84,12 +81,12 @@ DH_set_method() returns a pointer to the B previously associated with B. DH_new_method() returns B and sets an error code that can be -obtained by ERR_get_error(3) if the allocation fails. Otherwise it +obtained by L if the allocation fails. Otherwise it returns a pointer to the newly allocated structure. =head1 SEE ALSO -dh(3), DH_new(3) +L, L =head1 HISTORY