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_new(3), ERR_get_error(3), RAND_bytes(3),
25 DSA_generate_parameters_ex(3)
26
28 Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
29
30 Licensed under the OpenSSL license (the "License"). You may not use
31 this file except in compliance with the License. You can obtain a copy
32 in the file LICENSE in the source distribution or at
33 <https://www.openssl.org/source/license.html>.
34
35
36
371.1.1c 2019-05-28 DSA_GENERATE_KEY(3)