1
0
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:
v2ray
2016-02-25 21:50:10 +01:00
parent 59bc881d70
commit 76ca9de25f
10 changed files with 39 additions and 71 deletions

View File

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