From a1bc23c1612227aad2c12e1a554804ffcf87f307 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Fri, 11 Jul 2014 18:48:57 +0800 Subject: [PATCH] fix salsa20 --- shadowsocks/encrypt.py | 3 --- 1 file changed, 3 deletions(-) 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)