Max Lv
25c575cb78
clean up
9 years ago
Max Lv
c1959cac7f
refine the log
9 years ago
Max Lv
99633b9908
fix #441
9 years ago
Max Lv
032c609c4d
truncate HMAC-SHA1 to 10 bytes
9 years ago
Max Lv
5be0c9c55d
fix #404
9 years ago
Max Lv
529eab29f4
fix a typo
9 years ago
Max Lv
a76fae5b37
fix missing hmac-sha1
9 years ago
Max Lv
b8e282b6d5
use OpenSSL's HMAC by default
9 years ago
Max Lv
8d46ced3c9
fix auth in udprelay
9 years ago
Max Lv
c1db81d7db
fix a buffer overflow
9 years ago
Max Lv
4301ded40e
fix a typo
9 years ago
Max Lv
0e79c93ad1
add auth to udprelay
9 years ago
Max Lv
f0f23b4199
replace poly1305 with hmac-sha1
9 years ago
Max Lv
0987fb3632
fix an issue of endian
9 years ago
Max Lv
f3686420ea
fix typos
9 years ago
Max Lv
9f553536cb
Use IV + Chunk id as key of BLAKE2b
9 years ago
Max Lv
552fca1bff
Use one time key for BLAKE2b
9 years ago
Max Lv
d3e43e09a2
Refine the authentication for true CCA
9 years ago
Max Lv
441ac45547
Use one time key for BLAKE2b
9 years ago
Max Lv
1e10661a51
Refine the authentication for true CCA
9 years ago
Max Lv
5ae4df94e4
Update the hash function
9 years ago
Max Lv
b49edb9095
fix a buffer overflow
9 years ago
Max Lv
53c2900b19
refine onetime auth
9 years ago
Max Lv
8d13b2d34e
fix #398
9 years ago
Max Lv
de8041b618
fix a buffer issue
9 years ago
Max Lv
6d79387715
use crc16
9 years ago
Max Lv
703374cae8
fix a buf issue
9 years ago
Max Lv
9e021aa919
add CRC8 for payload authentication
9 years ago
Max Lv
9f4c4953dc
fix #391
9 years ago
Max Lv
4daab0e869
disable iv check for rc4
9 years ago
Max Lv
42ee808681
add onetime authentication
9 years ago
Max Lv
e686d6594f
fix iv cache
9 years ago
Max Lv
a50e00c240
refine conn cache
9 years ago
Syrone Wong
a8059f4e6f
Fix typo in encrypt.c
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
9 years ago
Max Lv
ac186749ee
clean up
9 years ago
Syrone Wong
e81b205e61
Add mbed TLS support for shadowsocks-libev
Notes:
- Test cipher CFB support just in case (i.e. OpenWrt disabled it)
- Added some inline notes, please feel free to modify or remove them.
- Sorry for my bad English
- If you want to compile for OpenWrt, please make sure this hunk[1] not exists.
- Only tested on ARM mamba (Linksys WRT1900AC v1), it works.
[1] https://github.com/openwrt-mirror/openwrt/blob/master/package/libs/mbedtls/patches/200-config.patch#L12-L20
Have fun!
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
9 years ago
Max Lv
d5765a8bbe
fix incorrect p_len in ss_decrypt_all
10 years ago
Max Lv
3bcba86432
fix #211
10 years ago
Max Lv
e5289e9ba4
Replace libasyncns with libudns
10 years ago
Max Lv
2a15e97196
bump version
10 years ago
Max Lv
93d861f9b9
fix #187
10 years ago
Max Lv
561c28b573
fix fake cipher
10 years ago
Max Lv
1336881e9f
remove HAVE_SODIUM_H
10 years ago
Max Lv
bca8a499f9
integrate libsodium as a submodule
10 years ago
Max Lv
ae85d6f36b
fix some bugs
10 years ago
Max Lv
a0d773ca89
refine the sodium support
10 years ago
Max Lv
aae283faf8
implement encrypt() function
10 years ago
Max Lv
f7d2fc0eb2
add fake ciphers for salsa20 chacha20
10 years ago
Symeon Huang
e463ba47a8
code clean. salt is a duplicate of i
10 years ago
Max Lv
b198d1da2e
bump version
10 years ago