encrypt optimization

This commit is contained in:
kepler155c@gmail.com
2019-06-30 17:20:55 -04:00
parent 721cd840b3
commit 86e918667c
2 changed files with 582 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ local sha2 = require('opus.crypto.sha2')
local Serializer = require('opus.crypto.serializer')
local Util = require('opus.util')
local ROUNDS = 20 -- Adjust this for speed tradeoff
local ROUNDS = 8 -- Adjust this for speed tradeoff
local bxor = bit32.bxor
local band = bit32.band