fix: lua bit32 can actually take several values. How did I miss this?
This commit is contained in:
1 parent
3f9024eeaf
commit
1629287291
3 files changed
+7
-7
No files matched your search
@@ -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