1DH_size(3) OpenSSL DH_size(3)
2
3
4
6 DH_size - get Diffie-Hellman prime size
7
9 #include <openssl/dh.h>
10
11 int DH_size(DH *dh);
12
14 This function returns the Diffie-Hellman size in bytes. It can be used
15 to determine how much memory must be allocated for the shared secret
16 computed by DH_compute_key().
17
18 dh->p must not be NULL.
19
21 The size in bytes.
22
24 dh(3), DH_generate_key(3)
25
27 DH_size() is available in all versions of SSLeay and OpenSSL.
28
29
30
311.0.2o 2020-08-01 DH_size(3)