EVP_PKEY_GET_FIELD_TYPE(3ossl)

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

✨ EVP_PKEY_GET_FIELD_TYPE(3ossl) ✨

okay so bestie, this is a page from the OpenSSL manual, section 3ossl β€” and it's literally about peeking inside a key to find out what kind of field it lives in and how its points get converted. tiny page, big main character energy πŸ’…


🌸 NAME 🌸

EVP_PKEY_get_field_type, EVP_PKEY_get_ec_point_conv_form β€” get the field type or the point conversion form of a key πŸ”‘


πŸŽ€ SYNOPSIS πŸŽ€

like, here's the whole vibe in code form:

#include <openssl/evp.h>

int EVP_PKEY_get_field_type(const EVP_PKEY *pkey);
int EVP_PKEY_get_ec_point_conv_form(const EVP_PKEY *pkey);

πŸ¦‹ DESCRIPTION πŸ¦‹

  • EVP_PKEY_get_field_type() β€” returns the field type NID of pkey, if pkey's key type supports it, no cap. The types currently supported by the built-in OpenSSL providers are either NID_X9_62_prime_field for prime curves or NID_X9_62_characteristic_two_field for binary curves β€” and these values are defined in the <openssl/obj_mac.h> header file. iconic. ✨
  • EVP_PKEY_get_ec_point_conv_form() β€” returns the point conversion format of the pkey, if pkey's key type supports it. that's it, that's the whole function 🫢

πŸ’œ NOTES πŸ’œ

Among the standard OpenSSL key types, this is only supported for EC and SM2 keys. Other providers may support this for additional key types. so like… don't come for these functions if you're using some random other key type, it's giving "not my department" 😭


⭐ RETURN VALUES ⭐

  • EVP_PKEY_get_field_type() β€” returns the field type NID, or 0 on error. bare minimum behavior fr fr πŸ’€
  • EVP_PKEY_get_ec_point_conv_form() β€” returns the point conversion format number (see EC_GROUP_copy(3)), or 0 on error. same deal, 0 means something went sideways πŸ™ˆ

🌈 SEE ALSO 🌈

  • EC_GROUP_copy(3) β€” go read this one too, bestie, it's the whole point conversion lore πŸ‘‘

πŸ”₯ HISTORY πŸ”₯

These functions were added in OpenSSL 3.0. so they're not ancient relics, they're like the new gen on the block πŸ’«


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

real talk: the license text is not a vibe to skip, so read it properly before you go copying stuff around πŸ’–

k that's the whole page, mwah πŸ’‹ β€” this was OpenSSL version 3.5.6, dated 2026-04-07, page EVP_PKEY_GET_FIELD_TYPE(3ossl), and yes I remembered every single detail because that's just how I am πŸŽ€βœ¨

πŸ“¦ where this page comes from