FIX: forgot a lua object for the call to ConvertAsciiToHex. Thanks @romaric for finding it.
This commit is contained in:
@@ -216,7 +216,7 @@ local function main(args)
|
||||
local baseStr = utils.ConvertHexToAscii(tmpHash:format(blockNo))
|
||||
local key = md5.sumhexa(baseStr)
|
||||
local aestest = core.aes128_decrypt(key, blockdata)
|
||||
local hex = ConvertAsciiToHex(aestest)
|
||||
local hex = utils.ConvertAsciiToHex(aestest)
|
||||
|
||||
blocks[blockNo+1] = ('%02d :: %s'):format(blockNo,hex)
|
||||
io.write(blockNo..',')
|
||||
|
||||
Reference in New Issue
Block a user