mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-06-20 01:39:55 -04:00
Version 1.0 alpha
This commit is contained in:
@@ -35,10 +35,10 @@ func TestNormalReading(t *testing.T) {
|
||||
aesBlock, err := aes.NewCipher(key)
|
||||
assert.Error(err).IsNil()
|
||||
|
||||
aesMode := cipher.NewCBCEncrypter(aesBlock, iv)
|
||||
aesStream := cipher.NewCFBEncrypter(aesBlock, iv)
|
||||
|
||||
ciphertext := make([]byte, testSize)
|
||||
aesMode.CryptBlocks(ciphertext, plaintext)
|
||||
aesStream.XORKeyStream(ciphertext, plaintext)
|
||||
|
||||
ciphertextcopy := make([]byte, testSize)
|
||||
copy(ciphertextcopy, ciphertext)
|
||||
|
||||
Reference in New Issue
Block a user