Fix variable reference for HMAC key assignment in setupCrypto function

This commit is contained in:
MayaTheShy
2026-03-22 11:21:50 -04:00
parent c1b2e03fd6
commit 53b38b7286

View File

@@ -107,7 +107,7 @@ end
local function setupCrypto(socket, isClient)
socket.sharedKey = ECC.exchange(socket.privKey, socket.remotePubKey)
socket.enckey = SHA.pbkdf2(socket.sharedKey, "1enc", 1)
--self.hmackey = SHA.pbkdf2(self.sharedKey, "2hmac", 1)
socket.hmackey = SHA.pbkdf2(socket.sharedKey, "2hmac", 1)
socket.rrng = Crypto.newRNG(
SHA.pbkdf2(socket.sharedKey, isClient and "3rseed" or "4sseed", 1))