5 DSA_size, DSA_bits, DSA_security_bits - get DSA signature size, key bits or security bits
9 #include <openssl/dsa.h>
11 int DSA_size(const DSA *dsa);
12 int DSA_bits(const DSA *dsa);
13 int DSA_security_bits(const DSA *dsa);
17 DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
18 for key B<dsa> in bytes. It can be used to determine how much memory must
19 be allocated for a DSA signature.
21 B<dsa-E<gt>q> must not be B<NULL>.
23 DSA_bits() returns the number of bits in key B<dsa>: this is the number
24 of bits in the B<p> parameter.
26 DSA_security_bits() returns the number of security bits of the given B<dsa>
27 key. See L<BN_security_bits(3)>.
31 DSA_size() returns the signature size in bytes.
33 DSA_bits() returns the number of bits in the key.
37 L<DSA_new(3)>, L<DSA_sign(3)>
41 Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
43 Licensed under the OpenSSL license (the "License"). You may not use
44 this file except in compliance with the License. You can obtain a copy
45 in the file LICENSE in the source distribution or at
46 L<https://www.openssl.org/source/license.html>.