EVP_PKEY_digestsign_supports_digest

Query whether digest name can be used for DigestSign/Verify with pkey.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_digestsign_supports_digest(
    EVP_PKEY* pkey,
    OSSL_LIB_CTX* libctx,
    char const* name,
    char const* propq);

Return Value

1 if supported, 0 if not, or a negative value on failure.

Parameters

NameDescription
pkeyPublic key whose signature algorithm is checked.
libctxLibrary context for algorithm fetches, or NULL for the default.
nameDigest algorithm name (for example "SHA256").
propqProperty query for provider selection, or NULL.