Diff

mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua @ 6344:eb834f754f57 draft default tip

Merge update
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Fri, 18 Jul 2025 20:45:38 +0700
parent 6333:dbbbd5caf292
line wrap: on
line diff
--- a/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua	Sun Jun 15 01:08:46 2025 +0700
+++ b/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua	Fri Jul 18 20:45:38 2025 +0700
@@ -14,7 +14,7 @@
 	-- FIXME: luaossl does not expose the EVP_CTRL_GCM_GET_TAG API, so we append 16 NUL bytes
 	-- Siskin does not validate the tag anyway.
 	function crypto.aes_128_gcm_encrypt(key, iv, message)
-		return ciphers.new("AES-128-GCM"):encrypt(key, iv):final(message)..string.rep("\0", 16);
+		return ossl_ciphers.new("AES-128-GCM"):encrypt(key, iv):final(message)..string.rep("\0", 16);
 	end
 end