diff options
Diffstat (limited to 'src/lib/libcrypto/man/DSA_size.3')
-rw-r--r-- | src/lib/libcrypto/man/DSA_size.3 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/DSA_size.3 b/src/lib/libcrypto/man/DSA_size.3 new file mode 100644 index 0000000000..64dce38f7c --- /dev/null +++ b/src/lib/libcrypto/man/DSA_size.3 | |||
@@ -0,0 +1,29 @@ | |||
1 | .Dd $Mdocdate: November 2 2016 $ | ||
2 | .Dt DSA_SIZE 3 | ||
3 | .Os | ||
4 | .Sh NAME | ||
5 | .Nm DSA_size | ||
6 | .Nd get DSA signature size | ||
7 | .Sh SYNOPSIS | ||
8 | .In openssl/dsa.h | ||
9 | .Ft int | ||
10 | .Fo DSA_size | ||
11 | .Fa "const DSA *dsa" | ||
12 | .Fc | ||
13 | .Sh DESCRIPTION | ||
14 | This function returns the size of an ASN.1 encoded DSA signature in | ||
15 | bytes. | ||
16 | It can be used to determine how much memory must be allocated for a DSA | ||
17 | signature. | ||
18 | .Pp | ||
19 | .Fa dsa->q | ||
20 | must not be | ||
21 | .Dv NULL . | ||
22 | .Sh RETURN VALUE | ||
23 | The size in bytes. | ||
24 | .Sh SEE ALSO | ||
25 | .Xr dsa 3 , | ||
26 | .Xr DSA_sign 3 | ||
27 | .Sh HISTORY | ||
28 | .Fn DSA_size | ||
29 | is available in all versions of SSLeay and OpenSSL. | ||