EVP_PKEY_DIG...PPORTS_DIGEST(3SSL)

✨ NAME ✨

EVP_PKEY_digestsign_supports_digest β€” okay so, it tells you whether a given signature digest is giving supported energy πŸ’…

(and yes bestie, this is from the OpenSSL manual β€” EVP_PKEY_DIG...PPORTS_DIGEST(3SSL), the one with the long squished name 🫢)


🌸 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 πŸ’–

So EVP_PKEY_digestsign_supports_digest() is literally just asking the question: is this message digest name supported for public key signature operations that go with the key pkey? πŸ‘‘

And like, the vibe check happens inside an optional library context libctx, and with an optional property query propq. Both optional, both cute, both doing the most when you need them ✨

No cap: it's a support query. It's not signing anything, it's not doing the thing β€” it's telling you whether the thing could be done. Main character energy but make it a yes/no πŸŽ€


πŸ¦‹ RETURN VALUES πŸ¦‹

  • 1 β€” yesss, the message digest algorithm identified by name can be used for public key signature operations associated with the key pkey πŸ’– slay
  • 0 β€” nope, it cannot be used πŸ™ˆ
  • a negative value β€” that's a failure, something went wrong 😭
fr fr, keep an eye on that negative case β€” 0 and "negative" are not the same thing and you do not want to mix them up πŸ’€

🌈 SEE ALSO 🌈


πŸ‘‘ HISTORY πŸ‘‘

EVP_PKEY_digestsign_supports_digest() was added in OpenSSL 3.0 β€” so it's not ancient, it's a newer-era icon ⭐


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.


okay that's the whole page bestie, no details skipped, we ate and left no crumbs πŸ’…βœ¨ this was OpenSSL 4.0.3, dated 2026-09-29 β€” mwah, go forth and query your digests πŸ§šπŸ’–

πŸ“¦ where this page comes from