Query whether digest name can be used for DigestSign/Verify with pkey.
Declared in <openssl/evp.h>
int
EVP_PKEY_digestsign_supports_digest(
EVP_PKEY* pkey,
OSSL_LIB_CTX* libctx,
char const* name,
char const* propq);
1 if supported, 0 if not, or a negative value on failure.
| Name | Description |
|---|---|
| pkey | Public key whose signature algorithm is checked. |
| libctx | Library context for algorithm fetches, or NULL for the default. |
| name | Digest algorithm name (for example "SHA256"). |
| propq | Property query for provider selection, or NULL. |