1DSA_GENERATE_KEY(3)                 OpenSSL                DSA_GENERATE_KEY(3)
2
3
4

NAME

6       DSA_generate_key - generate DSA key pair
7

SYNOPSIS

9        #include <openssl/dsa.h>
10
11        int DSA_generate_key(DSA *a);
12

DESCRIPTION

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 random generator must be seeded prior to calling
18       DSA_generate_key().  If the automatic seeding or reseeding of the
19       OpenSSL CSPRNG fails due to external circumstances (see RAND(7)), the
20       operation will fail.
21

RETURN VALUES

23       DSA_generate_key() returns 1 on success, 0 otherwise.  The error codes
24       can be obtained by ERR_get_error(3).
25

SEE ALSO

27       DSA_new(3), ERR_get_error(3), RAND_bytes(3),
28       DSA_generate_parameters_ex(3)
29
31       Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
32
33       Licensed under the OpenSSL license (the "License").  You may not use
34       this file except in compliance with the License.  You can obtain a copy
35       in the file LICENSE in the source distribution or at
36       <https://www.openssl.org/source/license.html>.
37
38
39
401.1.1i                            2021-07-22               DSA_GENERATE_KEY(3)
Impressum