From ba49f7ca7dcf8b76551429ff38047e6fb4ab7aa2 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 22 Mar 2026 04:09:39 -0400 Subject: [PATCH] Upgrade ChaCha20 rounds from 8 to 20 for enhanced security --- sys/modules/opus/crypto/chacha20.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/modules/opus/crypto/chacha20.lua b/sys/modules/opus/crypto/chacha20.lua index c98654c..f5f743c 100644 --- a/sys/modules/opus/crypto/chacha20.lua +++ b/sys/modules/opus/crypto/chacha20.lua @@ -5,7 +5,7 @@ local cbor = require('opus.cbor') local sha2 = require('opus.crypto.sha2') local Util = require('opus.util') -local ROUNDS = 8 -- Adjust this for speed tradeoff +local ROUNDS = 20 -- Standard ChaCha20 (was 8, upgraded for security) local bxor = bit32.bxor local band = bit32.band