Commit df44fac
committed
Kyber: fix kyber_from_msg()
New compilers with specific optimization levels will produce
non-constant time code for kyber_from_msg().
Add in an optimization blocker that stops the compiler from assuming
anything about the value to be ANDed with KYBER_Q_1_HALF.1 parent b8aec63 commit df44fac
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
2773 | 2776 | | |
2774 | 2777 | | |
2775 | 2778 | | |
| 2779 | + | |
| 2780 | + | |
2776 | 2781 | | |
2777 | 2782 | | |
2778 | 2783 | | |
2779 | 2784 | | |
2780 | 2785 | | |
2781 | 2786 | | |
2782 | 2787 | | |
2783 | | - | |
| 2788 | + | |
| 2789 | + | |
2784 | 2790 | | |
2785 | 2791 | | |
2786 | 2792 | | |
| |||
0 commit comments