xref: /freebsd/crypto/openssl/doc/man3/DSA_size.pod (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1=pod
2
3=head1 NAME
4
5DSA_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 int DSA_size(const DSA *dsa);
12 int DSA_bits(const DSA *dsa);
13 int DSA_security_bits(const DSA *dsa);
14
15=head1 DESCRIPTION
16
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.
20
21B<dsa-E<gt>q> must not be B<NULL>.
22
23DSA_bits() returns the number of bits in key B<dsa>: this is the number
24of bits in the B<p> parameter.
25
26DSA_security_bits() returns the number of security bits of the given B<dsa>
27key. See L<BN_security_bits(3)>.
28
29=head1 RETURN VALUES
30
31DSA_size() returns the signature size in bytes.
32
33DSA_bits() returns the number of bits in the key.
34
35=head1 SEE ALSO
36
37L<DSA_new(3)>, L<DSA_sign(3)>
38
39=head1 COPYRIGHT
40
41Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
42
43Licensed under the OpenSSL license (the "License").  You may not use
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
49