Commit 3f42f96
crypto: strengthen argument CHECKs in TurboSHAKE
Instead of first discarding the top 24 bits of the argument and then
checking that the low 8 bits are within the expected range, first check
that the original 32-bit integer is within the expected range and then
discard the top 24 bits.
PR-URL: #62763
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 7efc2ce commit 3f42f96Copy full SHA for 3f42f96
1 file changed
+4-4Lines changed: 4 additions & 4 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/crypto
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/crypto/crypto_turboshake.cc
Copy file name to clipboardExpand all lines: src/crypto/crypto_turboshake.cc+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
449 | 449 | |
450 | 450 | |
451 | 451 | |
452 | | - |
453 | | - |
454 | | - |
455 | | - |
| 452 | + |
| 453 | + |
| 454 | + |
| 455 | + |
456 | 456 | |
457 | 457 | |
458 | 458 | |
|
0 commit comments