EVP_PKEY_digestsign_supports_digest.3ossl

indicate support for signature digest

Synopsis

 #include <openssl/evp.h>
 int EVP_PKEY_digestsign_supports_digest(EVP_PKEY *pkey, OSSL_LIB_CTX *libctx,
                                         const char *name, const char *propq);

Description

The EVP_PKEY_digestsign_supports_digest() function queries whether the message digest name is supported for public key signature operations associated with key pkey. The query is done within an optional library context libctx and with an optional property query propq.

Return Values

The EVP_PKEY_digestsign_supports_digest() function returns 1 if the message digest algorithm identified by name can be used for public key signature operations associated with key pkey and 0 if it cannot be used. It returns a negative value for failure.

See Also

EVP_DigestSignInit_ex(3),

History

The EVP_PKEY_digestsign_supports_digest() function was added in OpenSSL 3.0.

Referenced By

EVP_PKEY_get_default_digest_nid.3ossl(3).

2024-03-07 3.2.1 OpenSSL