5 DH_size, DH_bits - get Diffie-Hellman prime size
9 #include <openssl/dh.h>
11 int DH_size(const DH *dh);
13 int DH_bits(const DH *dh);
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().
21 DH_bits() returns the number of significant bits.
23 B<dh> and B<dh-E<gt>p> must not be B<NULL>.
31 L<dh(3)>, L<DH_generate_key(3)>,
36 DH_bits() was added in OpenSSL 1.1.0.
40 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
42 Licensed under the OpenSSL license (the "License"). You may not use
43 this file except in compliance with the License. You can obtain a copy
44 in the file LICENSE in the source distribution or at
45 L<https://www.openssl.org/source/license.html>.