EVP_PKEY_METH_GET_COUNT(3ossl)

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

πŸ’… EVP_PKEY_METH_GET_COUNT πŸ’… (that's the 3ossl manual, bestie)

Okay so real talk: this page is about three little functions β€” EVP_PKEY_meth_get_count, EVP_PKEY_meth_get0, and EVP_PKEY_meth_get0_info β€” and their whole entire job is enumerating public key methods. Cute concept, iconic energy, but uh… they're deprecated. We'll get there. 🫢


✨ SYNOPSIS ✨

#include <openssl/evp.h>
⚠️ Heads up bestie: the following functions have been deprecated since OpenSSL 3.0, and you can hide them entirely by defining OPENSSL_API_COMPAT with a suitable version value β€” peep openssl_user_macros(7) for the deets.
size_t EVP_PKEY_meth_get_count(void);
const EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx);
void EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags,
                             const EVP_PKEY_METHOD *meth);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so, first thing first, no cap: all of the functions described on this page are deprecated. Like, all of them. Every single one. Applications should instead use the OSSL_PROVIDER APIs. That's the vibe now. πŸ’€

  • EVP_PKEY_meth_count() β€” returns a count of the number of public key methods available. And it's not just the standard ones, bestie: it includes standard methods and any methods added by the application. Inclusive queen. πŸ‘‘
  • EVP_PKEY_meth_get0() β€” returns the public key method idx. The value of idx must be between zero and EVP_PKEY_meth_get_count() - 1. Stay in your lane, idx. πŸŽ€
  • EVP_PKEY_meth_get0_info() β€” returns the public key ID (a NID) and any flags associated with the public key method *meth.

🌸 RETURN VALUES 🌸

  • EVP_PKEY_meth_count() β€” returns the number of available public key methods.
  • EVP_PKEY_meth_get0() β€” returns a public key method, or NULL if idx is out of range. (Rude but fair.)
  • EVP_PKEY_meth_get0_info() β€” does not return a value. It's giving "I don't do returns, I do vibes." πŸ’…

🌈 SEE ALSO 🌈


🧚 HISTORY 🧚

All of these functions were deprecated in OpenSSL 3.0. Periodt.


Copyright 2002-2020 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 β€” version 3.5.6, dated 2026-04-07, manual EVP_PKEY_METH_GET_COUNT(3ossl). Slay, go read EVP_PKEY_new(3) next, muah πŸ’–βœ¨

πŸ“¦ where this page comes from