Further CPU optiations

This commit is contained in:
QuantumEntangledAndy committed 2023-10-27 16:13:11 +07:00
1 parent a6c8665a98
commit 7f047efaef
4 files changed
+68 -57

No files matched your search

+1 -1
View File
@@ -228,7 +228,7 @@ local function hexencode(str)
end
local gcrypt = require("luagcrypt")
local function aes_decrypt(data)
local raw_key = _G.nonce .. "-" .. bc_protocol.prefs.key
local raw_key = (_G.nonce or "") .. "-" .. bc_protocol.prefs.key
local iv = "0123456789abcdef"
local hasher = gcrypt.Hash(gcrypt.MD_MD5)
hasher:write(raw_key)