Skip to content

Commit

Permalink
fix scalarMul_vartime for tiny multiple 5
Browse files Browse the repository at this point in the history
The code previously accidentally only return 3 for the case 5.
  • Loading branch information
Vindaar committed Jul 12, 2024
1 parent 0afda7b commit 787cd97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constantine/math/elliptic/ec_scalar_mul_vartime.nim
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func scalarMul_addchain_4bit_vartime[EC](P: var EC, scalar: BigInt) {.tags:[VarT
of 5:
var t {.noInit.}: EC
t.double(P)
t.double(P)
t.double()
P ~+= t
of 6:
var t {.noInit.}: EC
Expand Down

0 comments on commit 787cd97

Please sign in to comment.