Initialise ctx for a DigestVerify operation with public key pkey.
Declared in <openssl/evp.h>
int
EVP_DigestVerifyInit(
EVP_MD_CTX* ctx,
EVP_PKEY_CTX** pctx,
EVP_MD const* type,
ENGINE* e,
EVP_PKEY* pkey);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| ctx | Digest/verify context to initialise. |
| pctx | Optional out-parameter receiving the internal EVP_PKEY_CTX, or NULL. |
| type | Digest to use, or NULL for algorithms that do not take a separate MD. |
| e | Legacy ENGINE, or NULL. |
| pkey | Public key used for verification. |