1 | =pod
|
---|
2 |
|
---|
3 | =head1 NAME
|
---|
4 |
|
---|
5 | DSA_size, DSA_bits, DSA_security_bits - get DSA signature size, key bits or security bits
|
---|
6 |
|
---|
7 | =head1 SYNOPSIS
|
---|
8 |
|
---|
9 | #include <openssl/dsa.h>
|
---|
10 |
|
---|
11 | The following functions have been deprecated since OpenSSL 3.0, and can be
|
---|
12 | hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
|
---|
13 | see L<openssl_user_macros(7)>:
|
---|
14 |
|
---|
15 | int DSA_bits(const DSA *dsa);
|
---|
16 |
|
---|
17 | int DSA_size(const DSA *dsa);
|
---|
18 |
|
---|
19 | int DSA_security_bits(const DSA *dsa);
|
---|
20 |
|
---|
21 | =head1 DESCRIPTION
|
---|
22 |
|
---|
23 | All of the functions described on this page are deprecated.
|
---|
24 | Applications should instead use L<EVP_PKEY_get_bits(3)>,
|
---|
25 | L<EVP_PKEY_get_security_bits(3)> and L<EVP_PKEY_get_size(3)>.
|
---|
26 |
|
---|
27 | DSA_bits() returns the number of bits in key I<dsa>: this is the number
|
---|
28 | of bits in the I<p> parameter.
|
---|
29 |
|
---|
30 | DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
|
---|
31 | for key I<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 I<dsa>
|
---|
35 | key. See L<BN_security_bits(3)>.
|
---|
36 |
|
---|
37 | =head1 RETURN VALUES
|
---|
38 |
|
---|
39 | DSA_security_bits() returns the number of security bits in the key, or -1 if
|
---|
40 | I<dsa> doesn't hold any key parameters.
|
---|
41 |
|
---|
42 | DSA_bits() returns the number of bits in the key, or -1 if I<dsa> doesn't
|
---|
43 | hold any key parameters.
|
---|
44 |
|
---|
45 | DSA_size() returns the signature size in bytes, or -1 if I<dsa> doesn't
|
---|
46 | hold any key parameters.
|
---|
47 |
|
---|
48 | =head1 SEE ALSO
|
---|
49 |
|
---|
50 | L<EVP_PKEY_get_bits(3)>,
|
---|
51 | L<EVP_PKEY_get_security_bits(3)>,
|
---|
52 | L<EVP_PKEY_get_size(3)>,
|
---|
53 | L<DSA_new(3)>, L<DSA_sign(3)>
|
---|
54 |
|
---|
55 | =head1 HISTORY
|
---|
56 |
|
---|
57 | All of these functions were deprecated in OpenSSL 3.0.
|
---|
58 |
|
---|
59 | =head1 COPYRIGHT
|
---|
60 |
|
---|
61 | Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
|
---|
62 |
|
---|
63 | Licensed under the Apache License 2.0 (the "License"). You may not use
|
---|
64 | this file except in compliance with the License. You can obtain a copy
|
---|
65 | in the file LICENSE in the source distribution or at
|
---|
66 | L<https://www.openssl.org/source/license.html>.
|
---|
67 |
|
---|
68 | =cut
|
---|