diff options
author | Bodo Möller <bodo@openssl.org> | 2001-07-25 17:20:34 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-07-25 17:20:34 +0000 |
commit | 6aecef815c3c989f6fa2a7b6edf2984e76306622 (patch) | |
tree | 8bd689efdda456f6f0844f4c34c23a75c1df8285 /doc | |
parent | daba492c3a461bbcc0df69d609124936a19205f6 (diff) |
Don't preserve existing keys in DH_generate_key.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/DH_generate_key.pod | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/crypto/DH_generate_key.pod b/doc/crypto/DH_generate_key.pod index 920995b2e5..d376dc9f2f 100644 --- a/doc/crypto/DH_generate_key.pod +++ b/doc/crypto/DH_generate_key.pod @@ -21,9 +21,8 @@ value to compute the shared key. DH_generate_key() expects B<dh> to contain the shared parameters B<dh-E<gt>p> and B<dh-E<gt>g>. It generates a random private DH value -unless B<dh-E<gt>priv_key> is already set, and computes the -corresponding public value B<dh-E<gt>pub_key>, which can then be -published. +B<dh-E<gt>priv_key>, and it computes the corresponding public value +B<dh-E<gt>pub_key>, which can then be published. DH_compute_key() computes the shared secret from the private DH value in B<dh> and the other party's public value in B<pub_key> and stores @@ -46,5 +45,7 @@ L<dh(3)|dh(3)>, L<err(3)|err(3)>, L<rand(3)|rand(3)>, L<DH_size(3)|DH_size(3)> DH_generate_key() and DH_compute_key() are available in all versions of SSLeay and OpenSSL. +Up to version 0.9.6b, DH_generate_key() would not generate a new +key if B<dh-E<gt>priv_key> was already set. =cut |