From c50f6b11b3242adba0c8a3a6a50082a2eca01772 Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Fri, 31 Oct 2025 18:08:24 +0100 Subject: [PATCH] rsa: update doxygen doc for RSA signature verification to mention PSS While the verification step originally only supported PKCS1.5 as padding algorithm for the signature, it was later extended to add support for PSS but the doxygen doc wasn't updated to reflect that so let's fix that oversight. Fixes: 061daa0b61f0 ("rsa: add support of padding pss") Signed-off-by: Quentin Schulz --- lib/rsa/rsa-verify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c index 0d618f15ea9..e7e612a4688 100644 --- a/lib/rsa/rsa-verify.c +++ b/lib/rsa/rsa-verify.c @@ -310,7 +310,7 @@ U_BOOT_PADDING_ALGO(pss) = { /** * rsa_verify_key() - Verify a signature against some data using RSA Key * - * Verify a RSA PKCS1.5 signature against an expected hash using + * Verify a RSA PKCS1.5/PSS signature against an expected hash using * the RSA Key properties in prop structure. * * @info: Specifies key and FIT information @@ -388,7 +388,7 @@ static int rsa_verify_key(struct image_sign_info *info, * @sig_len: Number of bytes in signature * * Parse a RSA public key blob in DER format pointed to in @info and fill - * a key_prop structure with properties of the key. Then verify a RSA PKCS1.5 + * a key_prop structure with properties of the key. Then verify a RSA PKCS1.5/PSS * signature against an expected hash using the calculated properties. * * Return 0 if verified, -ve on error @@ -423,7 +423,7 @@ int rsa_verify_with_pkey(struct image_sign_info *info, * information in node with prperties of RSA Key like modulus, exponent etc. * * Parse sign-node and fill a key_prop structure with properties of the - * key. Verify a RSA PKCS1.5 signature against an expected hash using + * key. Verify a RSA PKCS1.5/PSS signature against an expected hash using * the properties parsed * * @info: Specifies key and FIT information -- 2.47.3