crypto: strengthen argument CHECKs in TurboSHAKE · nodejs/node@e8a55ce · GitHub
Skip to content

Commit e8a55ce

Browse files
tniessensxa
authored andcommitted
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 Backport-PR-URL: #63563 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Xuguang Mei <meixuguang@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1c16b45 commit e8a55ce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/crypto/crypto_turboshake.cc

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)