Skip to content

Commit

Permalink
Fix a typo in mul_shift_vartime() logic
Browse files Browse the repository at this point in the history
Fortunately since it was an internal method only used with shift=272,
it never made any difference.
  • Loading branch information
fjarri committed Aug 10, 2022
1 parent efa2e63 commit f06b212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k256/src/arithmetic/scalar/wide64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl WideScalar {
shift < 448,
(l[1 + shiftlimbs] >> shiftlow)
| ifelse(
shift < 448 && shiftlow != 0,
shift < 384 && shiftlow != 0,
l[2 + shiftlimbs] << shifthigh,
0,
),
Expand Down

0 comments on commit f06b212

Please sign in to comment.