Skip to content

Commit

Permalink
Fix int decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
boatbomber committed Apr 15, 2022
1 parent 34b6ebb commit 465f5ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EllipticCurveCryptography/arith.lua
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ local function decodeInt(enc)
for i = 1, 21, 3 do
local word = 0
for j = 2, 0, -1 do
word *= 256 + encCopy[i + j]
word *= 256
word += encCopy[i + j]
end

table.insert(a, word)
Expand Down

0 comments on commit 465f5ce

Please sign in to comment.