EVP_PKEY_GET_FIELD_TYPE(3ossl)
β¨ 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 ofpkey, ifpkey's key type supports it, no cap. The types currently supported by the built-in OpenSSL providers are eitherNID_X9_62_prime_fieldfor prime curves orNID_X9_62_characteristic_two_fieldfor 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 thepkey, ifpkey'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, or0on error. bare minimum behavior fr fr πEVP_PKEY_get_ec_point_conv_form()β returns the point conversion format number (seeEC_GROUP_copy(3)), or0on error. same deal,0means 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 π
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
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms