PEM_SignFinal

Finalize a PEM signing operation and write the signature.

Synopsis

Declared in <openssl/pem.h>

int
PEM_SignFinal(
    EVP_MD_CTX* ctx,
    unsigned char* sigret,
    unsigned int* siglen,
    EVP_PKEY* pkey);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxDigest context previously updated with data to sign.
sigretBuffer receiving the signature.
siglenReceives the signature length in bytes.
pkeyPrivate key used to generate the signature.