Commit 231e392
committed
musig: make zero-check in SessionSecretRand::assume_unique constant time
I haven't checked against the assembler code and this check is simple
enough that I suspect that the compiler is going to undermine me, but
the use of ptr::read_volatile *should* prevent that. Anyway make a
best-effort attempt.1 parent f478d73 commit 231e392
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
0 commit comments