DH_size.pod 552 B

123456789101112131415161718192021222324252627282930313233
  1. =pod
  2. =head1 NAME
  3. DH_size - get Diffie-Hellman prime size
  4. =head1 SYNOPSIS
  5. #include <openssl/dh.h>
  6. int DH_size(DH *dh);
  7. =head1 DESCRIPTION
  8. This function returns the Diffie-Hellman size in bytes. It can be used
  9. to determine how much memory must be allocated for the shared secret
  10. computed by DH_compute_key().
  11. B<dh-E<gt>p> must not be B<NULL>.
  12. =head1 RETURN VALUE
  13. The size in bytes.
  14. =head1 SEE ALSO
  15. L<dh(3)|dh(3)>, L<DH_generate_key(3)|DH_generate_key(3)>
  16. =head1 HISTORY
  17. DH_size() is available in all versions of SSLeay and OpenSSL.
  18. =cut