Fixed RSA PSS verificatiobn bug (when hash_len != salt_len).
This commit is contained in:
parent
d40d23b60c
commit
6a691e6995
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ br_rsa_pss_sig_unpad(const br_hash_class *hf_data,
|
||||||
* in the string.
|
* in the string.
|
||||||
*/
|
*/
|
||||||
for (u = 0; u < hash_len; u ++) {
|
for (u = 0; u < hash_len; u ++) {
|
||||||
r |= tmp[u] ^ x[(xlen - salt_len - 1) + u];
|
r |= tmp[u] ^ x[(xlen - hash_len - 1) + u];
|
||||||
}
|
}
|
||||||
|
|
||||||
return EQ0(r);
|
return EQ0(r);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue