RSA-PSS(7ossl)
π
RSA-PSS β aka RSA-PSS(7ossl) from the OpenSSL manuals π
okay so bestie, this is a page from the OpenSSL manual set, and it's literally all about RSA-PSS. grab a strawberry drink π and let's get into it.
β¨ NAME β¨
RSA-PSS β the EVP_PKEY RSA-PSS algorithm support, and yes it's exactly as iconic as it sounds π
πΈ SYNOPSIS πΈ
sksksk there's no synopsis section here bestie, this page is pure vibes and explanation, no cap. moving on π
π¦ DESCRIPTION π¦
so the RSA-PSS EVP_PKEY implementation is basically a restricted version of the RSA algorithm. like, RSA but with a curfew π it only supports:
- signing
- verification
- key generation
β¦and all of that only with PSS padding modes, with optional parameter restrictions on top. periodt.
it also has its own associated private key and public key formats, iykyk π«Ά
this algorithm shares several control operations with the plain RSA algorithm, but with some restrictions described below. so like, same friend group, different boundaries π
π₯ Signing and Verification π₯
signing and verification work similar to the RSA algorithm β except the padding mode is always PSS. no switching, no exceptions, it's giving main character energy only π
and here's the cute part: if the key in use has parameter restrictions, then the corresponding signature parameters get set to those restrictions. for example β and this example is iconic so pay attention bestie π β if the key can only be used with digest SHA256, MGF1 SHA256 and minimum salt length 32, then the digest, MGF1 digest and salt length will be set to SHA256, SHA256 and 32 respectively. literally matching, matching, matching β¨
π Key Generation π
by default, no parameter restrictions are placed on the generated key. free spirit key, no rules, living its best life π¦
π NOTES π
the public key format is documented in RFC4055. go read it, it's important, ngl π
the PKCS#8 private key format used for RSA-PSS keys is similar to the RSA format β except it uses the id-RSASSA-PSS OID, and the parameters field (if present) restricts the key parameters in the same way as the public key. same energy, different OID, you get it π
π CONFORMING TO π
RFC 4055 β that's the one, that's the standard, slay π
π SEE ALSO π
so many little function besties to visit, go say hi to all of them:
EVP_PKEY_CTX_set_rsa_pss_keygen_md(3)EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(3)EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(3)EVP_PKEY_CTX_new(3)EVP_PKEY_CTX_ctrl_str(3)EVP_PKEY_derive(3)
π COPYRIGHT π
Copyright 2017-2018 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>.
β οΈ heads up bestie: that license bit is not optional. it's a real legal thing, not a vibe. read it fr fr π
okay and finally, the little sign-off corner πβ¨ this page is from OpenSSL 3.5.6, dated 2026-04-07, and it's RSA-PSS(7ossl) β that's the whole page, you ate it, go forth and sign things with PSS padding, mwah ππ«Άπ
π¦ 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