Blame doc/man3/DSA_size.pod

Packit c4476c
=pod
Packit c4476c
Packit c4476c
=head1 NAME
Packit c4476c
Packit c4476c
DSA_size, DSA_bits, DSA_security_bits - get DSA signature size, key bits or security bits
Packit c4476c
Packit c4476c
=head1 SYNOPSIS
Packit c4476c
Packit c4476c
 #include <openssl/dsa.h>
Packit c4476c
Packit c4476c
 int DSA_size(const DSA *dsa);
Packit c4476c
 int DSA_bits(const DSA *dsa);
Packit c4476c
 int DSA_security_bits(const DSA *dsa);
Packit c4476c
Packit c4476c
=head1 DESCRIPTION
Packit c4476c
Packit c4476c
DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
Packit c4476c
for key B<dsa> in bytes. It can be used to determine how much memory must
Packit c4476c
be allocated for a DSA signature.
Packit c4476c
Packit c4476c
B<dsa-E<gt>q> must not be B<NULL>.
Packit c4476c
Packit c4476c
DSA_bits() returns the number of bits in key B<dsa>: this is the number
Packit c4476c
of bits in the B

parameter.

Packit c4476c
Packit c4476c
DSA_security_bits() returns the number of security bits of the given B<dsa>
Packit c4476c
key. See L<BN_security_bits(3)>.
Packit c4476c
Packit c4476c
=head1 RETURN VALUES
Packit c4476c
Packit c4476c
DSA_size() returns the signature size in bytes.
Packit c4476c
Packit c4476c
DSA_bits() returns the number of bits in the key.
Packit c4476c
Packit c4476c
=head1 SEE ALSO
Packit c4476c
Packit c4476c
L<DSA_new(3)>, L<DSA_sign(3)>
Packit c4476c
Packit c4476c
=head1 COPYRIGHT
Packit c4476c
Packit c4476c
Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
Packit c4476c
Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
this file except in compliance with the License.  You can obtain a copy
Packit c4476c
in the file LICENSE in the source distribution or at
Packit c4476c
L<https://www.openssl.org/source/license.html>.
Packit c4476c
Packit c4476c
=cut