Browse Source

try to fix OPENSSL_assert(inl > 0)

1.4
clowwindy 12 years ago
parent
commit
b71ef639bf
  1. 2
      encrypt.py

2
encrypt.py

@ -166,4 +166,6 @@ class Encryptor(object):
decipher_iv = buf[:decipher_iv_len] decipher_iv = buf[:decipher_iv_len]
self.decipher = self.get_cipher(self.key, self.method, 0, iv=decipher_iv) self.decipher = self.get_cipher(self.key, self.method, 0, iv=decipher_iv)
buf = buf[decipher_iv_len:] buf = buf[decipher_iv_len:]
if len(buf) == 0:
return buf
return self.decipher.update(buf) return self.decipher.update(buf)

Loading…
Cancel
Save