aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-08-01 18:37:03 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-08-01 19:37:42 +0100
commit5d8d9a8efaad0ece23f6692f1b1318744230fd4d (patch)
treeab17e16b52b1f2c4b38d887c0317825fcf3bbb62 /doc
parent6c1f368d882846e5624f8b47be951d16be65a30c (diff)
downloadopenssl-5d8d9a8efaad0ece23f6692f1b1318744230fd4d.tar.gz
Add DSA_bits() function.
RT#4637 Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/crypto/DSA_size.pod16
1 files changed, 11 insertions, 5 deletions
diff --git a/doc/crypto/DSA_size.pod b/doc/crypto/DSA_size.pod
index 7c121469a1..16e6f3a963 100644
--- a/doc/crypto/DSA_size.pod
+++ b/doc/crypto/DSA_size.pod
@@ -2,25 +2,31 @@
=head1 NAME
-DSA_size - get DSA signature size
+DSA_size, DSA_bits - get DSA signature size or key bits
=head1 SYNOPSIS
#include <openssl/dsa.h>
int DSA_size(const DSA *dsa);
+ int DSA_bits(const DSA *dsa);
=head1 DESCRIPTION
-This function returns the size of an ASN.1 encoded DSA signature in
-bytes. It can be used to determine how much memory must be allocated
-for a DSA signature.
+DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
+for key B<dsa> in bytes. It can be used to determine how much memory must
+be allocated for a DSA signature.
B<dsa-E<gt>q> must not be B<NULL>.
+DSA_bits() returns the number of bits in key B<dsa>: this is the number
+of bits in the B<p> parameter.
+
=head1 RETURN VALUE
-The size in bytes.
+DSA_size() returns the size in bytes.
+
+DSA_bits() returns the number of bits in the key.
=head1 SEE ALSO