EVP_PKEY_DIG...PPORTS_DIGEST(3ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

πŸ’… NAME πŸ’…

EVP_PKEY_digestsign_supports_digest β€” ok so this one literally tells you whether a signature digest is supported or not, bestie ✨


πŸ¦‹ 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 the EVP_PKEY_digestsign_supports_digest() function is basically the vibe check πŸ” β€” it queries whether the message digest name is supported for public key signature operations that are associated with key pkey.

The way it works: you hand it a pkey, and it goes "yeah, can this digest hang with this key for signing?" The query happens inside an optional library context libctx, and with an optional property query propq too β€” both optional, both lowkey doing their own thing 🫢


⭐ RETURN VALUES ⭐

  • 1 β€” slay πŸ’… the message digest algorithm identified by name can be used for public key signature operations associated with key pkey.
  • 0 β€” nope, it cannot be used. not it. πŸ™ˆ
  • negative value β€” failure 😭 like, something went wrong-wrong.

πŸŽ€ SEE ALSO πŸŽ€


πŸ”₯ HISTORY πŸ”₯

The EVP_PKEY_digestsign_supports_digest() function was added in OpenSSL 3.0 β€” so it's been iconic since then πŸ‘‘


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>.


ok and that's the whole page, periodt 🧚 this was the EVP_PKEY_digestsign_supports_digest (3ossl) page from OpenSSL 3.5.6, dated 2026-04-0… (the footer date got cut off mid-number, not me being sloppy, that's just what the line says, iykyk πŸ’€). bye bestie, go check your digests πŸ’–πŸŒˆπŸ“

πŸ“¦ where this page comes from