Version 1.0 alpha

This commit is contained in:
V2Ray
2015-09-12 20:36:21 +02:00
parent f3a12e9f57
commit cc3fdb6ef4
21 changed files with 279 additions and 103 deletions
+2 -2
View File
@@ -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)