EVP_PKEY_CTX_SET1_PBE_PASS(3ossl)
β¨ EVP_PKEY_CTX_SET1_PBE_PASS(3ossl) β¨
okay bestie, welcome to the EVP_PKEY_CTX_SET1_PBE_PASS page, straight outta the OpenSSL docs π it's a 3ossl manual, and it's short, it's sweet, and it's literally the password-passer for all your KDF girls. let's go π«Ά
πΈ NAME πΈ
EVP_PKEY_CTX_set1_pbe_pass β generic KDF support functions π
π SYNOPSIS π
#include <openssl/kdf.h>
int EVP_PKEY_CTX_set1_pbe_pass(EVP_PKEY_CTX *pctx, unsigned char *pass,
int passlen);
π¦ DESCRIPTION π¦
so these functions? they're the generic support functions for all KDF algorithms. every single one. no cap π§
EVP_PKEY_CTX_set1_pbe_pass() sets the password to the passlen first bytes from pass. that's it, that's the whole job. it takes the front passlen bytes of pass and says "yeah this is the password now" β¨
π STRING CTRLS π
there's also support for string based control operations via EVP_PKEY_CTX_ctrl_str(3). the password can be directly specified using the type parameter "pass", or given in hex encoding using the "hexpass" parameter. two doors, same password energy πͺβ¨
π RETURN VALUES π
all these functions return 1 for success π and 0 or a negative value for failure π
and like, specifically β a return value of -2 means the operation is not supported by the public key algorithm. it's giving "not my department", bestie π
π SEE ALSO π
β HISTORY β
EVP_PKEY_CTX_set1_pbe_pass() was converted from a macro to a function in OpenSSL 3.0. glow-up era, honestly π¦β¨
π COPYRIGHT π
Copyright 2018-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!! π this was OpenSSL 3.5.9, dated 2026-09-29, and it's the EVP_PKEY_CTX_SET1_PBE_PASS(3ossl) manual. mwah, go set some passwords π
π«Ά
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms