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 bynamecan be used for public key signature operations associated with the keypkeyπ slay0β 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 π
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
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms