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

NAME

6       DSA_size, DSA_bits, DSA_security_bits - get DSA signature size, key
7       bits or security bits
8

SYNOPSIS

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

DESCRIPTION

23       All of the functions described on this page are deprecated.
24       Applications should instead use EVP_PKEY_get_bits(3),
25       EVP_PKEY_get_security_bits(3) and EVP_PKEY_get_size(3).
26
27       DSA_bits() returns the number of bits in key dsa: this is the number of
28       bits in the p parameter.
29
30       DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
31       for key dsa in bytes. It can be used to determine how much memory must
32       be allocated for a DSA signature.
33
34       DSA_security_bits() returns the number of security bits of the given
35       dsa key. See BN_security_bits(3).
36

RETURN VALUES

38       DSA_security_bits() returns the number of security bits in the key, or
39       -1 if dsa doesn't hold any key parameters.
40
41       DSA_bits() returns the number of bits in the key, or -1 if dsa doesn't
42       hold any key parameters.
43
44       DSA_size() returns the signature size in bytes, or -1 if dsa doesn't
45       hold any key parameters.
46

SEE ALSO

48       EVP_PKEY_get_bits(3), EVP_PKEY_get_security_bits(3),
49       EVP_PKEY_get_size(3), DSA_new(3), DSA_sign(3)
50

HISTORY

52       All of these functions were deprecated in OpenSSL 3.0.
53
55       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
56
57       Licensed under the Apache License 2.0 (the "License").  You may not use
58       this file except in compliance with the License.  You can obtain a copy
59       in the file LICENSE in the source distribution or at
60       <https://www.openssl.org/source/license.html>.
61
62
63
643.0.9                             2023-07-27                   DSA_SIZE(3ossl)
Impressum