]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - doc/crypto/DSA_generate_parameters.pod
This undoes GH367 for non-master
[thirdparty/openssl.git] / doc / crypto / DSA_generate_parameters.pod
index b64a2765703dbd90621d0e6b83d7984be72fb7cc..be7c924ff8f971eefa18499b275b8df00971a81c 100644 (file)
@@ -17,12 +17,13 @@ DSA_generate_parameters - generate DSA parameters
 DSA_generate_parameters() generates primes p and q and a generator g
 for use in the DSA.
 
-B<bits> is the length of the prime p to be generated.
-For lengths under 2048 bits, the length of q is 160 bits; for lengths
-greater than or equal to 2048 bits, the length of q is set to 256 bits.
+B<bits> is the length of the prime to be generated; the DSS allows a
+maximum of 1024 bits.
 
-If B<seed> is NULL, the primes will be generated at random.
-If B<seed_len> is less than the length of q, an error is returned.
+If B<seed> is B<NULL> or B<seed_len> E<lt> 20, the primes will be
+generated at random. Otherwise, the seed is used to generate
+them. If the given seed does not yield a prime q, a new random
+seed is chosen and placed at B<seed>.
 
 DSA_generate_parameters() places the iteration count in
 *B<counter_ret> and a counter used for finding a generator in