mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix: lua bit32 can actually take several values. How did I miss this?
This commit is contained in:
parent
3f9024eeaf
commit
1629287291
3 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue