EVP_PKEY_DIG...PPORTS_DIGEST(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’… 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 by name can be used for public key signature operations associated with the key pkey πŸ‘‘
  • 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 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