From b151bf815fdb9df5e2d13bef825e816ffb9c2872 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Tue, 22 Dec 2015 19:39:39 +0800 Subject: [PATCH] fix "chacha20-ietf" --- shadowsocks/crypto/sodium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/crypto/sodium.py b/shadowsocks/crypto/sodium.py index ad1f48f..c4b5c1c 100644 --- a/shadowsocks/crypto/sodium.py +++ b/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.argtypes = (c_void_p, c_char_p, c_ulonglong, - c_char_p, c_ulonglong, + c_char_p, c_ulong, c_char_p) except: pass