fix salsa20

This commit is contained in:
clowwindy 2014-07-11 18:48:57 +08:00
parent 2950f99da6
commit a1bc23c161

View file

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