EVP_DigestSign

Sign tbs in one call using a prepared DigestSign context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_DigestSign(
    EVP_MD_CTX* ctx,
    unsigned char* sigret,
    size_t* siglen,
    unsigned char const* tbs,
    size_t tbslen);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxContext initialized with EVP_DigestSignInit().
sigretOutput buffer for the signature, or NULL to query the required length.
siglenOn input, size of sigret; on output, signature length.
tbsMessage bytes to sign ("to be signed").
tbslenLength of tbs in bytes.