Browse Source

fix "chacha20-ietf"

dev
BreakWa11 9 years ago
parent
commit
b151bf815f
  1. 2
      shadowsocks/crypto/sodium.py

2
shadowsocks/crypto/sodium.py

@ -56,7 +56,7 @@ def load_libsodium():
libsodium.crypto_stream_chacha20_ietf_xor_ic.restype = c_int libsodium.crypto_stream_chacha20_ietf_xor_ic.restype = c_int
libsodium.crypto_stream_chacha20_ietf_xor_ic.argtypes = (c_void_p, c_char_p, libsodium.crypto_stream_chacha20_ietf_xor_ic.argtypes = (c_void_p, c_char_p,
c_ulonglong, c_ulonglong,
c_char_p, c_ulonglong, c_char_p, c_ulong,
c_char_p) c_char_p)
except: except:
pass pass

Loading…
Cancel
Save