Skip to content

Commit

Permalink
Type fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
markkurossi committed Oct 23, 2024
1 parent d9e4d2f commit 21f10a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/crypto/curve25519/curve25519.mpcl
Original file line number Diff line number Diff line change
Expand Up @@ -813,9 +813,9 @@ func scalarMult(out, in, base *[32]byte) {
feOne(&z3)

swap := int32(0)
var b int32
var b uint32
for pos := 254; pos >= 0; pos-- {
b = e[pos/8] >> uint(pos&7)
b = uint32(e[pos/8] >> uint(pos&7))
b &= 1
swap ^= int32(b)
feCSwap(&x2, &x3, swap)
Expand Down

0 comments on commit 21f10a8

Please sign in to comment.