Verify a signature over tbs using an initialised key context.
Declared in <openssl/evp.h>
int
EVP_PKEY_verify(
EVP_PKEY_CTX* ctx,
unsigned char const* sig,
size_t siglen,
unsigned char const* tbs,
size_t tbslen);
1 if the signature is valid, 0 if invalid, or a negative value on error.
| Name | Description |
|---|---|
| ctx | Context previously prepared with EVP_PKEY_verify_init() or _ex(). |
| sig | Signature bytes to verify. |
| siglen | Length of sig in bytes. |
| tbs | Data that was signed (typically a digest or raw message). |
| tbslen | Length of tbs in bytes. |