Sign tbs in one call using a prepared DigestSign context.
Declared in <openssl/evp.h>
int
EVP_DigestSign(
EVP_MD_CTX* ctx,
unsigned char* sigret,
size_t* siglen,
unsigned char const* tbs,
size_t tbslen);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | Context initialized with EVP_DigestSignInit(). |
| sigret | Output buffer for the signature, or NULL to query the required length. |
| siglen | On input, size of sigret; on output, signature length. |
| tbs | Message bytes to sign ("to be signed"). |
| tbslen | Length of tbs in bytes. |