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 PRNG must be seeded prior to calling DSA_generate_key().
18

RETURN VALUES

20       DSA_generate_key() returns 1 on success, 0 otherwise.  The error codes
21       can be obtained by ERR_get_error(3).
22

SEE ALSO

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.1                             2018-09-11               DSA_GENERATE_KEY(3)
Impressum