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

NAME

6       DSA_generate_key - generate DSA key pair
7

SYNOPSIS

9        #include <openssl/dsa.h>
10
11       The following functions have been deprecated since OpenSSL 3.0, and can
12       be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
13       version value, see openssl_user_macros(7):
14
15        int DSA_generate_key(DSA *a);
16

DESCRIPTION

18       All of the functions described on this page are deprecated.
19       Applications should instead use EVP_PKEY_keygen_init(3) and
20       EVP_PKEY_keygen(3) as described in EVP_PKEY-DSA(7).
21
22       DSA_generate_key() expects a to contain DSA parameters. It generates a
23       new key pair and stores it in a->pub_key and a->priv_key.
24
25       The random generator must be seeded prior to calling
26       DSA_generate_key().  If the automatic seeding or reseeding of the
27       OpenSSL CSPRNG fails due to external circumstances (see RAND(7)), the
28       operation will fail.
29

RETURN VALUES

31       DSA_generate_key() returns 1 on success, 0 otherwise.  The error codes
32       can be obtained by ERR_get_error(3).
33

SEE ALSO

35       DSA_new(3), ERR_get_error(3), RAND_bytes(3),
36       DSA_generate_parameters_ex(3)
37

HISTORY

39       This function was deprecated in OpenSSL 3.0.
40
42       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
43
44       Licensed under the Apache License 2.0 (the "License").  You may not use
45       this file except in compliance with the License.  You can obtain a copy
46       in the file LICENSE in the source distribution or at
47       <https://www.openssl.org/source/license.html>.
48
49
50
513.0.5                             2022-11-01           DSA_GENERATE_KEY(3ossl)
Impressum