[#PEM_SignFinal] = PEM_SignFinal :mrdocs: Finalize a PEM signing operation and write the signature. == Synopsis Declared in `<openssl/pem.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PEM_SignFinal( xref:EVP_MD_CTX.adoc[EVP_MD_CTX]* ctx, unsigned char* sigret, unsigned int* siglen, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey); ---- == Return Value 1 on success, or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Digest context previously updated with data to sign. | *sigret* | Buffer receiving the signature. | *siglen* | Receives the signature length in bytes. | *pkey* | Private key used to generate the signature. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#