DH_size

Return the Diffie-Hellman shared-secret size in bytes (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
int
DH_size(DH const* dh);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Number of bytes needed to hold a shared secret (BN_num_bytes of p), or -1 on error.

Parameters

NameDescription
dhDH key whose prime modulus length is queried.