1DSA_generate_key(3) OpenSSL DSA_generate_key(3)
2
3
4
6 DSA_generate_key - generate DSA key pair
7
9 #include <openssl/dsa.h>
10
11 int DSA_generate_key(DSA *a);
12
14 DSA_generate_key() expects a to contain DSA parameters. It generates a
15 new key pair and stores it in a->pub_key and a->priv_key.
16
17 The PRNG must be seeded prior to calling DSA_generate_key().
18
20 DSA_generate_key() returns 1 on success, 0 otherwise. The error codes
21 can be obtained by ERR_get_error(3).
22
24 dsa(3), ERR_get_error(3), rand(3), DSA_generate_parameters(3)
25
27 DSA_generate_key() is available since SSLeay 0.8.
28
29
30
311.0.0e 2002-09-25 DSA_generate_key(3)