]>
Commit | Line | Data |
---|---|---|
38e33cef UM |
1 | =pod |
2 | ||
3 | =head1 NAME | |
4 | ||
6a2da303 | 5 | DSA_size, DSA_bits, DSA_security_bits - get DSA signature size, key bits or security bits |
38e33cef UM |
6 | |
7 | =head1 SYNOPSIS | |
8 | ||
9 | #include <openssl/dsa.h> | |
10 | ||
5bf73873 | 11 | int DSA_size(const DSA *dsa); |
5d8d9a8e | 12 | int DSA_bits(const DSA *dsa); |
6a2da303 | 13 | int DSA_security_bits(const DSA *dsa); |
38e33cef UM |
14 | |
15 | =head1 DESCRIPTION | |
16 | ||
5d8d9a8e DSH |
17 | DSA_size() returns the maximum size of an ASN.1 encoded DSA signature |
18 | for key B<dsa> in bytes. It can be used to determine how much memory must | |
19 | be allocated for a DSA signature. | |
38e33cef UM |
20 | |
21 | B<dsa-E<gt>q> must not be B<NULL>. | |
22 | ||
5d8d9a8e DSH |
23 | DSA_bits() returns the number of bits in key B<dsa>: this is the number |
24 | of bits in the B<p> parameter. | |
25 | ||
6a2da303 PY |
26 | DSA_security_bits() returns the number of security bits of the given B<dsa> |
27 | key. See L<BN_security_bits(3)>. | |
28 | ||
1f13ad31 | 29 | =head1 RETURN VALUES |
38e33cef | 30 | |
6a2da303 | 31 | DSA_size() returns the signature size in bytes. |
5d8d9a8e DSH |
32 | |
33 | DSA_bits() returns the number of bits in the key. | |
38e33cef UM |
34 | |
35 | =head1 SEE ALSO | |
36 | ||
b97fdb57 | 37 | L<DSA_new(3)>, L<DSA_sign(3)> |
38e33cef | 38 | |
e2f92610 RS |
39 | =head1 COPYRIGHT |
40 | ||
61f805c1 | 41 | Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved. |
e2f92610 | 42 | |
4746f25a | 43 | Licensed under the Apache License 2.0 (the "License"). You may not use |
e2f92610 RS |
44 | this file except in compliance with the License. You can obtain a copy |
45 | in the file LICENSE in the source distribution or at | |
46 | L<https://www.openssl.org/source/license.html>. | |
47 | ||
48 | =cut |