Browse Source

fix PEP8

auth
clowwindy 10 years ago
parent
commit
4be2731293
  1. 2
      shadowsocks/crypto/ctypes_openssl.py
  2. 5
      shadowsocks/crypto/m2.py

2
shadowsocks/crypto/ctypes_openssl.py

@ -158,4 +158,4 @@ def test():
if __name__ == '__main__':
test()
test()

5
shadowsocks/crypto/m2.py

@ -36,8 +36,9 @@ def create_cipher(alg, key, iv, op, key_as_bytes=0, d=None, salt=None, i=1,
padding=1):
import M2Crypto.EVP
return M2Crypto.EVP.Cipher(alg.replace('-', '_'), key, iv, op, key_as_bytes=0,
d='md5', salt=None, i=1, padding=1)
return M2Crypto.EVP.Cipher(alg.replace('-', '_'), key, iv, op,
key_as_bytes=0, d='md5', salt=None, i=1,
padding=1)
def err(alg, key, iv, op, key_as_bytes=0, d=None, salt=None, i=1, padding=1):

Loading…
Cancel
Save