mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-30 05:55:20 -05:00
refactor protocol
This commit is contained in:
@@ -35,7 +35,7 @@ func BenchmarkChaCha20IETF(b *testing.B) {
|
||||
func BenchmarkAESEncryption(b *testing.B) {
|
||||
key := make([]byte, 32)
|
||||
iv := make([]byte, 16)
|
||||
c, _ := NewAesEncryptionStream(key, iv)
|
||||
c := NewAesEncryptionStream(key, iv)
|
||||
|
||||
benchmarkStream(b, c)
|
||||
}
|
||||
@@ -43,7 +43,7 @@ func BenchmarkAESEncryption(b *testing.B) {
|
||||
func BenchmarkAESDecryption(b *testing.B) {
|
||||
key := make([]byte, 32)
|
||||
iv := make([]byte, 16)
|
||||
c, _ := NewAesDecryptionStream(key, iv)
|
||||
c := NewAesDecryptionStream(key, iv)
|
||||
|
||||
benchmarkStream(b, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user