]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/DSA_size.pod
Make BIGNUM rand functions available within the FIPS module
[thirdparty/openssl.git] / doc / man3 / DSA_size.pod
CommitLineData
38e33cef
UM
1=pod
2
3=head1 NAME
4
6a2da303 5DSA_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
17DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
18for key B<dsa> in bytes. It can be used to determine how much memory must
19be allocated for a DSA signature.
38e33cef
UM
20
21B<dsa-E<gt>q> must not be B<NULL>.
22
5d8d9a8e
DSH
23DSA_bits() returns the number of bits in key B<dsa>: this is the number
24of bits in the B<p> parameter.
25
6a2da303
PY
26DSA_security_bits() returns the number of security bits of the given B<dsa>
27key. See L<BN_security_bits(3)>.
28
1f13ad31 29=head1 RETURN VALUES
38e33cef 30
6a2da303 31DSA_size() returns the signature size in bytes.
5d8d9a8e
DSH
32
33DSA_bits() returns the number of bits in the key.
38e33cef
UM
34
35=head1 SEE ALSO
36
b97fdb57 37L<DSA_new(3)>, L<DSA_sign(3)>
38e33cef 38
e2f92610
RS
39=head1 COPYRIGHT
40
61f805c1 41Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
e2f92610 42
4746f25a 43Licensed under the Apache License 2.0 (the "License"). You may not use
e2f92610
RS
44this file except in compliance with the License. You can obtain a copy
45in the file LICENSE in the source distribution or at
46L<https://www.openssl.org/source/license.html>.
47
48=cut