DSA_dup_DH

Duplicate DSA parameters (and key material when present) into a new DH object (deprecated).

Synopsis

Declared in <openssl/dsa.h>

[[deprecated]]
DH*
DSA_dup_DH(DSA const* r);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Be careful to avoid small-subgroup attacks when using the resulting DH key.

Return Value

New DH object, or NULL on error; free with DH_free().

Parameters

NameDescription
rSource DSA object whose p/q/g (and optional keys) are copied.