mirror of
https://github.com/status-im/BearSSL.git
synced 2025-02-23 07:58:08 +00:00
Fixed RSA PSS verificatiobn bug (when hash_len != salt_len).
This commit is contained in:
parent
d40d23b60c
commit
6a691e6995
@ -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…
x
Reference in New Issue
Block a user