EVP_SignFinal_ex

Finish a legacy Sign operation with an explicit library context and property query.

Synopsis

Declared in <openssl/evp.h>

int
EVP_SignFinal_ex(
    EVP_MD_CTX* ctx,
    unsigned char* md,
    unsigned int* s,
    EVP_PKEY* pkey,
    OSSL_LIB_CTX* libctx,
    char const* propq);

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.
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query string, or NULL.