fixed bug with hmac still being used for connecting in coordinator configurator after clearing key

This commit is contained in:
Mikayla Fischler
2024-02-22 19:25:55 -05:00
parent 0b0051dc2f
commit f207a950e4
3 changed files with 7 additions and 2 deletions

View File

@@ -53,6 +53,11 @@ function network.init_mac(passkey)
return init_time
end
-- de-initialize message authentication system
function network.deinit_mac()
c_eng.key, c_eng.hmac = nil, nil
end
-- generate HMAC of message
---@nodiscard
---@param message string initial value concatenated with ciphertext