fix salsa20
This commit is contained in:
@ -223,7 +223,4 @@ def encrypt_all(password, method, op, data):
|
|||||||
else:
|
else:
|
||||||
cipher = encrypt_salsa20.Salsa20Cipher(method, key, iv, op)
|
cipher = encrypt_salsa20.Salsa20Cipher(method, key, iv, op)
|
||||||
result.append(cipher.update(data))
|
result.append(cipher.update(data))
|
||||||
f = cipher.final()
|
|
||||||
if f:
|
|
||||||
result.append(f)
|
|
||||||
return ''.join(result)
|
return ''.join(result)
|
||||||
|
Reference in New Issue
Block a user