1DH_size(3)                          OpenSSL                         DH_size(3)
2
3
4

NAME

6       DH_size - get Diffie-Hellman prime size
7

SYNOPSIS

9        #include <openssl/dh.h>
10
11        int DH_size(DH *dh);
12

DESCRIPTION

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

RETURN VALUE

21       The size in bytes.
22

SEE ALSO

24       dh(3), DH_generate_key(3)
25

HISTORY

27       DH_size() is available in all versions of SSLeay and OpenSSL.
28
29
30
311.0.2o                            2019-09-10                        DH_size(3)
Impressum