Import OpenSSL-0.9.8i.
[dragonfly.git] / crypto / openssl-0.9.7d / doc / crypto / DH_size.pod
blob97f26fda7855e8e865e9e9d7893a4d3d15d7f124
1 =pod
3 =head1 NAME
5 DH_size - get Diffie-Hellman prime size
7 =head1 SYNOPSIS
9  #include <openssl/dh.h>
11  int DH_size(DH *dh);
13 =head1 DESCRIPTION
15 This function returns the Diffie-Hellman size in bytes. It can be used
16 to determine how much memory must be allocated for the shared secret
17 computed by DH_compute_key().
19 B<dh-E<gt>p> must not be B<NULL>.
21 =head1 RETURN VALUE
23 The size in bytes.
25 =head1 SEE ALSO
27 L<dh(3)|dh(3)>, L<DH_generate_key(3)|DH_generate_key(3)>
29 =head1 HISTORY
31 DH_size() is available in all versions of SSLeay and OpenSSL.
33 =cut