update docs because depth refers only to intermediate certs
[openssl.git] / doc / man3 / DSA_size.pod
1 =pod
2
3 =head1 NAME
4
5 DSA_size, DSA_bits - get DSA signature size or key 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
14 =head1 DESCRIPTION
15
16 DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
17 for key B<dsa> in bytes. It can be used to determine how much memory must
18 be allocated for a DSA signature.
19
20 B<dsa-E<gt>q> must not be B<NULL>.
21
22 DSA_bits() returns the number of bits in key B<dsa>: this is the number
23 of bits in the B<p> parameter.
24
25 =head1 RETURN VALUE
26
27 DSA_size() returns the size in bytes.
28
29 DSA_bits() returns the number of bits in the key.
30
31 =head1 SEE ALSO
32
33 L<DSA_new(3)>, L<DSA_sign(3)>
34
35 =head1 COPYRIGHT
36
37 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
38
39 Licensed under the OpenSSL license (the "License").  You may not use
40 this file except in compliance with the License.  You can obtain a copy
41 in the file LICENSE in the source distribution or at
42 L<https://www.openssl.org/source/license.html>.
43
44 =cut