Verify a DSA signature against a digest using a DSA_SIG structure (deprecated).

Synopsis

Declared in <openssl/dsa.h>

[[deprecated]]
int
DSA_do_verify(
    unsigned char const* dgst,
    int dgst_len,
    DSA_SIG* sig,
    DSA* dsa);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 if the signature is valid, 0 if invalid, or ‐1 on error.

Parameters

Name

Description

dgst

Digest bytes that were signed.

dgst_len

Length of dgst in bytes.

sig

Signature containing r and s.

dsa

DSA public key (and parameters) used for verification.

Created with MrDocs