skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 2:... HP Open Source Security for OpenVMS Volume 2:...
go to beginning of reference: CRYPTO Application Programming Interface (API)... CRYPTO Application Programming Interface (API)...
go to previous page: DH_set_default_method DH_set_default_method
go to next page: dsadsa
end of book navigation links


DH_size
Description
Return Value
See Also
History
 

NAME

DH_size - get Diffie-Hellman prime size

Synopsis  

#include <openssl/dh.h>
int DH_size(DH *dh);


return to top DESCRIPTION  

This function returns the Diffie-Hellman size in bytes. It can be used to determine how much memory must be allocated for the shared secret computed by DH_compute_key().

dh->p must not be NULL.


return to top RETURN VALUE  

The size in bytes.


return to top SEE ALSO  

dh(3) , DH_generate_key(3)


return to top HISTORY  

DH_size() is available in all versions of SSLeay and OpenSSL.
go to previous page: DH_set_default_method DH_set_default_method
go to next page: dsadsa