[#EVP_PKEY_digestsign_supports_digest]
= EVP&lowbar;PKEY&lowbar;digestsign&lowbar;supports&lowbar;digest
:mrdocs:

Query whether digest `name` can be used for DigestSign&sol;Verify with `pkey&period;`

== Synopsis

Declared in `&lt;openssl&sol;evp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;digestsign&lowbar;supports&lowbar;digest(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* name,
    char const* propq);
----

== Return Value

1 if supported, 0 if not, or a negative value on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pkey*
| Public key whose signature algorithm is checked&period;
| *libctx*
| Library context for algorithm fetches, or NULL for the default&period;
| *name*
| Digest algorithm name (for example &quot;SHA256&quot;)&period;
| *propq*
| Property query for provider selection, or NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
