EVP_PKEY_DIG...PPORTS_DIGEST(3ossl)
π NAME π
EVP_PKEY_digestsign_supports_digest β bestie, this one literally tells you whether a signature digest is supported or not β¨
πΈ 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 π¦
okay so picture this: you've got a key, right? pkey. And you're like "hiii, can I use this message digest for public key signature operations with this key?" That's the whole vibe of EVP_PKEY_digestsign_supports_digest(). It queries whether the message digest name is supported for public key signature operations associated with the key pkey. No cap, that's it π
The query happens inside an optional library context, libctx, and with an optional property query, propq. Both optional, both just vibes you can pass along if you need them π
π₯ RETURN VALUES π₯
1β slay! The message digest algorithm identified bynamecan be used for public key signature operations associated with the keypkeyπ0β nah, it cannot be used π- negative value β failure, something went wrong, not the move π
π SEE ALSO π
EVP_DigestSignInit_ex(3), β go read that one next, iykyk π«Ά
β HISTORY β
EVP_PKEY_digestsign_supports_digest() was added in OpenSSL 3.0. iconic behavior honestly π
π COPYRIGHT π
Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
and that's the whole page, bestie!! this lil gem is from the OpenSSL manual, version 3.5.0, dated 2026-09-2 β mwah, go forth and query those digests ππ¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms