1DSA_SIZE(3)                         OpenSSL                        DSA_SIZE(3)
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        int DSA_size(const DSA *dsa);
13        int DSA_bits(const DSA *dsa);
14        int DSA_security_bits(const DSA *dsa);
15

DESCRIPTION

17       DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
18       for key dsa in bytes. It can be used to determine how much memory must
19       be allocated for a DSA signature.
20
21       dsa->q must not be NULL.
22
23       DSA_bits() returns the number of bits in key dsa: this is the number of
24       bits in the p parameter.
25
26       DSA_security_bits() returns the number of security bits of the given
27       dsa key. See BN_security_bits(3).
28

RETURN VALUES

30       DSA_size() returns the signature size in bytes.
31
32       DSA_bits() returns the number of bits in the key.
33

SEE ALSO

35       DSA_new(3), DSA_sign(3)
36
38       Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
39
40       Licensed under the OpenSSL license (the "License").  You may not use
41       this file except in compliance with the License.  You can obtain a copy
42       in the file LICENSE in the source distribution or at
43       <https://www.openssl.org/source/license.html>.
44
45
46
471.1.1l                            2021-09-15                       DSA_SIZE(3)
Impressum