]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/DH_size.pod
Fix referenses in section 3 manuals
[thirdparty/openssl.git] / doc / man3 / DH_size.pod
CommitLineData
4486d0cd
UM
1=pod
2
3=head1 NAME
4
26c79d56 5DH_size, DH_bits - get Diffie-Hellman prime size
4486d0cd
UM
6
7=head1 SYNOPSIS
8
26c79d56 9#include <openssl/dh.h>
4486d0cd 10
26c79d56
KR
11int DH_size(const DH *dh);
12
13int DH_bits(const DH *dh);
4486d0cd
UM
14
15=head1 DESCRIPTION
16
26c79d56 17DH_size() returns the Diffie-Hellman prime size in bytes. It can be used
4486d0cd
UM
18to determine how much memory must be allocated for the shared secret
19computed by DH_compute_key().
20
26c79d56
KR
21DH_bits() returns the number of significant bits.
22
23B<dh> and B<dh-E<gt>p> must not be B<NULL>.
4486d0cd
UM
24
25=head1 RETURN VALUE
26
26c79d56 27The size.
4486d0cd
UM
28
29=head1 SEE ALSO
30
b97fdb57 31L<DH_new(3)>, L<DH_generate_key(3)>,
9b86974e 32L<BN_num_bits(3)>
4486d0cd
UM
33
34=head1 HISTORY
35
26c79d56 36DH_bits() was added in OpenSSL 1.1.0.
4486d0cd 37
e2f92610
RS
38=head1 COPYRIGHT
39
40Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
41
42Licensed under the OpenSSL license (the "License"). You may not use
43this file except in compliance with the License. You can obtain a copy
44in the file LICENSE in the source distribution or at
45L<https://www.openssl.org/source/license.html>.
46
47=cut