EVP_DigestSignFinal

Finalize a DigestSign operation and write the signature.

Synopsis

Declared in <openssl/evp.h>

int
EVP_DigestSignFinal(
    EVP_MD_CTX* ctx,
    unsigned char* sigret,
    size_t* siglen);

Return Value

1 on success, or 0 / a negative value on error.

Parameters

NameDescription
ctxContext initialized with EVP_DigestSignInit and updated with EVP_DigestSignUpdate.
sigretBuffer receiving the signature, or NULL to only query the required length.
siglenOn entry, size of sigret; on exit, signature length (or required size).