5 DSA_size, DSA_bits - get DSA signature size or key bits
9 #include <openssl/dsa.h>
11 int DSA_size(const DSA *dsa);
12 int DSA_bits(const DSA *dsa);
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.
20 B<dsa-E<gt>q> must not be B<NULL>.
22 DSA_bits() returns the number of bits in key B<dsa>: this is the number
23 of bits in the B<p> parameter.
27 DSA_size() returns the size in bytes.
29 DSA_bits() returns the number of bits in the key.
33 L<dsa(3)>, L<DSA_sign(3)>
37 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
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>.