Verify sigret over tbs in one call using a prepared DigestVerify context.
Declared in <openssl/evp.h>
int
EVP_DigestVerify(
EVP_MD_CTX* ctx,
unsigned char const* sigret,
size_t siglen,
unsigned char const* tbs,
size_t tbslen);
1 if the signature is valid, 0 if it is invalid, or a negative value on error.
| Name | Description |
|---|---|
| ctx | Context initialized with EVP_DigestVerifyInit(). |
| sigret | Signature bytes to verify. |
| siglen | Length of sigret in bytes. |
| tbs | Message bytes that were signed ("to be signed"). |
| tbslen | Length of tbs in bytes. |