RSA_PSS_PARAMS_NEW(3)
π RSA_PSS_PARAMS_NEW(3) π
okay bestie, welcome to the Library Functions Manual page for RSA_PSS_PARAMS_new and RSA_PSS_PARAMS_free β yes, the whole thing lives in libcrypto, no cap β¨
πΈ SYNOPSIS πΈ
like, first you gotta pull in the header:
#include <openssl/rsa.h>
and then the two functions themselves, exactly like this:
RSA_PSS_PARAMS *
RSA_PSS_PARAMS_new(void);
void
RSA_PSS_PARAMS_free(RSA_PSS_PARAMS *params);
π¦ DESCRIPTION π¦
okay so RSA_PSS_PARAMS_new() is the main character here π β it allocates and initializes a whole empty RSA_PSS_PARAMS object for you. and what even is that, you ask? it's literally the representation of an ASN.1 RSASSA-PSS-params structure, which is defined in RFC 8017 appendix A.2.3. iykyk π
that object is lowkey holding onto a bunch of stuff: it references the hash function and the mask generation function, and it stores the length of the salt plus the trailer field number. that's the whole vibe check of the struct π
and then RSA_PSS_PARAMS_free() is the cleanup bestie β it frees params. periodt. π§Ή
β RETURN VALUES β
RSA_PSS_PARAMS_new() returns the brand new RSA_PSS_PARAMS object π β¦or NULL if an error happens π (rip, it's giving "something went wrong").
π SEE ALSO π
go check out your other faves, they're all linked up:
π STANDARDS π
RFC 8017: PKCS#1: RSA Cryptography Specifications Version 2.2 β that's the one, go read it if you're feeling academic π
π HISTORY π
RSA_PSS_PARAMS_new() and RSA_PSS_PARAMS_free() first appeared in OpenSSL 1.0.1, and they've been available since OpenBSD 5.3. iconic longevity honestly π«Ά
aaaand that's the page!! mwah π this one came from Debian, dated June 8, 2025 β so go forth and allocate your PSS params responsibly, bestie πβ¨
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms