DSA_do_sign

Sign a digest with a DSA private key, returning a DSA_SIG structure (deprecated).

Synopsis

Declared in <openssl/dsa.h>

[[deprecated]]
DSA_SIG*
DSA_do_sign(
    unsigned char const* dgst,
    int dlen,
    DSA* dsa);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Newly allocated DSA_SIG, or NULL on error; free with DSA_SIG_free().

Parameters

NameDescription
dgstDigest bytes to sign.
dlenLength of dgst in bytes.
dsaDSA key containing the private key used for signing.