-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force twiddle as second argument to
fqmul()
For bounds reasoning, we need to know that `fqmul()` is always called with a signed canonical value in one of its arguments. To simplify the spec, this commit reorders arguments to `fqmul()` so that the signed canonical twiddle is always the _second_ argument. It checks this through a debug-only assertion, and also adds a debug-assertion that the return value of `fqmul()` is always of absolute value < MLKEM_Q. Signed-off-by: Hanno Becker <[email protected]>
- Loading branch information
1 parent
20dbffb
commit 9692dd8
Showing
2 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters