Finalize a PEM signing operation and write the signature.
Declared in <openssl/pem.h>
int
PEM_SignFinal(
EVP_MD_CTX* ctx,
unsigned char* sigret,
unsigned int* siglen,
EVP_PKEY* pkey);
1 on success, or 0 on error.
| 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. |