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

Name

Description

dh

DH key whose prime modulus length is queried.

Created with MrDocs