fix: lua bit32 can actually take several values. How did I miss this?
This commit is contained in:
@@ -38,7 +38,7 @@ local function ApplyPermutationAndShifts( pos, value, nibble)
|
||||
local shiftbytes = shifts[pos]
|
||||
local shiftElem = shiftbytes[nibble+1] --one indexed
|
||||
local shiftOne = shiftbytes[1]
|
||||
local rs = bit32.bxor(value, bit32.bxor(shiftOne, shiftElem))
|
||||
local rs = bit32.bxor(value, shiftOne, shiftElem)
|
||||
return rs
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user