EVP_SignFinal

Finish a legacy Sign operation and write the signature using pkey.

Synopsis

Declared in <openssl/evp.h>

int
EVP_SignFinal(
    EVP_MD_CTX* ctx,
    unsigned char* md,
    unsigned int* s,
    EVP_PKEY* pkey);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxDigest/sign context that has absorbed the message via EVP_DigestUpdate().
mdOutput buffer for the signature.
sReceives the signature length in bytes.
pkeyPrivate key used to produce the signature.