Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the PSA_ALG_RSA_PSS salt length documentation #4949

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions include/psa/crypto_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -1345,10 +1345,15 @@
*
* This is the signature scheme defined by RFC 8017
* (PKCS#1: RSA Cryptography Specifications) under the name
* RSASSA-PSS, with the message generation function MGF1, and with
* a salt length equal to the length of the hash. The specified
* hash algorithm is used to hash the input message, to create the
* salted hash, and for the mask generation.
* RSASSA-PSS, with the message generation function MGF1.
* The specified hash algorithm is used to hash the input message, to create
* the salted hash, and for the mask generation.
*
* When creating a signature, the salt length is equal to the length of
* the hash, or the largest possible salt length for the algorithm and key
* size if that is smaller than the hash length.
* When verifying a signature, any salt length permitted by the RSASSA-PSS
* signature algorithm is accepted.
*
* \param hash_alg A hash algorithm (\c PSA_ALG_XXX value such that
* #PSA_ALG_IS_HASH(\p hash_alg) is true).
Expand Down