summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/DH_size.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/DH_size.3')
-rw-r--r--src/lib/libcrypto/man/DH_size.329
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/DH_size.3 b/src/lib/libcrypto/man/DH_size.3
new file mode 100644
index 0000000000..3675f7b12b
--- /dev/null
+++ b/src/lib/libcrypto/man/DH_size.3
@@ -0,0 +1,29 @@
1.Dd $Mdocdate: November 2 2016 $
2.Dt DH_SIZE 3
3.Os
4.Sh NAME
5.Nm DH_size
6.Nd get Diffie-Hellman prime size
7.Sh SYNOPSIS
8.In openssl/dh.h
9.Ft int
10.Fo DH_size
11.Fa "DH *dh"
12.Fc
13.Sh DESCRIPTION
14This function returns the Diffie-Hellman size in bytes.
15It can be used to determine how much memory must be allocated for the
16shared secret computed by
17.Xr DH_compute_key 3 .
18.Pp
19.Fa dh->p
20must not be
21.Dv NULL .
22.Sh RETURN VALUE
23The size in bytes.
24.Sh SEE ALSO
25.Xr dh 3 ,
26.Xr DH_generate_key 3
27.Sh HISTORY
28.Fn DH_size
29is available in all versions of SSLeay and OpenSSL.