diff --git a/shadowsocks/encrypt.py b/shadowsocks/encrypt.py index a590645..857bdfe 100644 --- a/shadowsocks/encrypt.py +++ b/shadowsocks/encrypt.py @@ -223,7 +223,4 @@ def encrypt_all(password, method, op, data): else: cipher = encrypt_salsa20.Salsa20Cipher(method, key, iv, op) result.append(cipher.update(data)) - f = cipher.final() - if f: - result.append(f) return ''.join(result)