-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Typically, the big issue when trying to make code like yours constant time is the modular reduction x -> x mod q. This can be fixed by using something like Barrett reduction, see for example https://words.filippo.io/dispatches/kyber-math/
As written, the code is not constant-time and vulnerable to timing attacks.
https://research.redhat.com/blog/article/the-need-for-constant-time-cryptography/
Metadata
Metadata
Assignees
Labels
No labels