X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=lib%2Fopenssl%2Fdoc%2Fcrypto%2FDH_size.pod;h=8c1d151fcf5ecd12905955408f8a6825ac781974;hb=02ed66432c92de70694700164f986190aad3cbc5;hp=97f26fda7855e8e865e9e9d7893a4d3d15d7f124;hpb=89016837dcbf2775cd15dc8cbaba00dc6379f86e;p=cassiopeia.git diff --git a/lib/openssl/doc/crypto/DH_size.pod b/lib/openssl/doc/crypto/DH_size.pod index 97f26fd..8c1d151 100644 --- a/lib/openssl/doc/crypto/DH_size.pod +++ b/lib/openssl/doc/crypto/DH_size.pod @@ -2,32 +2,46 @@ =head1 NAME -DH_size - get Diffie-Hellman prime size +DH_size, DH_bits - get Diffie-Hellman prime size =head1 SYNOPSIS - #include +#include - int DH_size(DH *dh); +int DH_size(const DH *dh); + +int DH_bits(const DH *dh); =head1 DESCRIPTION -This function returns the Diffie-Hellman size in bytes. It can be used +DH_size() returns the Diffie-Hellman prime size in bytes. It can be used to determine how much memory must be allocated for the shared secret computed by DH_compute_key(). -Bp> must not be B. +DH_bits() returns the number of significant bits. + +B and Bp> must not be B. =head1 RETURN VALUE -The size in bytes. +The size. =head1 SEE ALSO -L, L +L, L, +L =head1 HISTORY -DH_size() is available in all versions of SSLeay and OpenSSL. +DH_bits() was added in OpenSSL 1.1.0. + +=head1 COPYRIGHT + +Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved. + +Licensed under the OpenSSL license (the "License"). You may not use +this file except in compliance with the License. You can obtain a copy +in the file LICENSE in the source distribution or at +L. =cut