Missing perldoc markup around < literal
[openssl.git] / doc / crypto / DH_size.pod
1 =pod
2
3 =head1 NAME
4
5 DH_size, DH_bits - get Diffie-Hellman prime size
6
7 =head1 SYNOPSIS
8
9 #include <openssl/dh.h>
10
11 int DH_size(const DH *dh);
12
13 int DH_bits(const DH *dh);
14
15 =head1 DESCRIPTION
16
17 DH_size() returns the Diffie-Hellman prime size in bytes. It can be used
18 to determine how much memory must be allocated for the shared secret
19 computed by DH_compute_key().
20
21 DH_bits() returns the number of significant bits.
22
23 B<dh> and B<dh-E<gt>p> must not be B<NULL>.
24
25 =head1 RETURN VALUE
26
27 The size.
28
29 =head1 SEE ALSO
30
31 L<dh(3)|dh(3)>, L<DH_generate_key(3)|DH_generate_key(3)>,
32 L<BN_num_bits(3)|BN_num_bits(3)>
33
34 =head1 HISTORY
35
36 DH_size() is available in all versions of SSLeay and OpenSSL.
37 DH_bits() was added in OpenSSL 1.1.0.
38
39 =cut