Upgrade ChaCha20 rounds from 8 to 20 for enhanced security

This commit is contained in:
MayaTheShy
2026-03-22 04:09:39 -04:00
parent f3c35afe07
commit ba49f7ca7d

View File

@@ -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