EVP_PKEY_SETTABLE_PARAMS(3SSL)
๐ EVP_PKEY_SETTABLE_PARAMS ๐
okay bestie, so this one is an OpenSSL manual page (manual section 3SSL, iykyk) and literally all it wants to do is teach you how to shove extra params into a key you already have. no cap. let's go ๐ฆ
โจ NAME โจ
EVP_PKEY_settable_params, EVP_PKEY_set_params, EVP_PKEY_set_int_param, EVP_PKEY_set_size_t_param, EVP_PKEY_set_bn_param, EVP_PKEY_set_utf8_string_param, EVP_PKEY_set_octet_string_param โ set key parameters into a key ๐
๐ธ SYNOPSIS ๐ธ
#include <openssl/evp.h>
const OSSL_PARAM *EVP_PKEY_settable_params(const EVP_PKEY *pkey);
int EVP_PKEY_set_params(EVP_PKEY *pkey, OSSL_PARAM params[]);
int EVP_PKEY_set_int_param(EVP_PKEY *pkey, const char *key_name, int in);
int EVP_PKEY_set_size_t_param(EVP_PKEY *pkey, const char *key_name, size_t in);
int EVP_PKEY_set_bn_param(EVP_PKEY *pkey, const char *key_name,
const BIGNUM *bn);
int EVP_PKEY_set_utf8_string_param(EVP_PKEY *pkey, const char *key_name,
const char *str);
int EVP_PKEY_set_octet_string_param(EVP_PKEY *pkey, const char *key_name,
const unsigned char *buf, size_t bsize);
copy that exactly bestie, character for character, no improvising ๐
๐ DESCRIPTION ๐
so the whole vibe of these functions is: you've got an EVP_PKEY that already exists, and you wanna slide some additional parameters into it. that's it. that's the job.
EVP_PKEY_set_params() โ sets one or more params into a pkey. if you're like "wait what's a param", go read OSSL_PARAM(3) for information about parameters. it's giving homework but do it ๐
EVP_PKEY_settable_params() โ returns a constant list of params that tells you the names and types of key parameters that can actually be set. again, OSSL_PARAM(3) for information about parameters. yes she's sending you there twice, she means it.
EVP_PKEY_set_int_param() โ sets an integer value in into a key pkey for the associated field key_name. ๐งฎ
EVP_PKEY_set_size_t_param() โ sets an size_t value in into a key pkey for the associated field key_name. ๐
EVP_PKEY_set_bn_param() โ sets the BIGNUM value bn into a key pkey for the associated field key_name. big number energy fr fr ๐ข
EVP_PKEY_set_utf8_string_param() โ sets the UTF8 string str into a key pkey for the associated field key_name. โ๏ธ
EVP_PKEY_set_octet_string_param() โ sets the octet string value buf with a size bsize into a key pkey for the associated field key_name. ๐ซง
๐ NOTES ๐
these functions only work for EVP_PKEYs that contain a provider side key. if yours doesn't, that's a you problem and the functions are not gonna play along ๐ญ
๐ซ RETURN VALUES ๐ซ
EVP_PKEY_settable_params()โ returnsNULLon error or if it is not supported. so like, check forNULLbestie, don't be out here dereferencing vibes ๐- all the other methods โ return
1if a value was successfully set, or0if there was an error. simple as that. 1 slays, 0 does not ๐
๐ SEE ALSO ๐
go read those too, they're the supporting cast and honestly? iconic โจ
๐ง HISTORY ๐ง
these functions were added in OpenSSL 3.0. so if you're on something older, no they weren't. ๐
๐ COPYRIGHT ๐
Copyright 2020-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>.
okay that's the whole page bestie, you ate that ๐ and quick little sign-off: this was OpenSSL version 4.0.3, dated 2026-09-29, and yeah it's still EVP_PKEY_SETTABLE_PARAMS(3SSL). mwah ๐
๐
๐ฆ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms