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

Name

Description

ctx

Context initialized with EVP_DigestSignInit and updated with EVP_DigestSignUpdate.

sigret

Buffer receiving the signature, or NULL to only query the required length.

siglen

On entry, size of sigret; on exit, signature length (or required size).

Created with MrDocs