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
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
703374cae8
fix a buf issue
9 years ago
Max Lv
58e6dbd470
refine the protocol document
9 years ago
Max Lv
9e021aa919
add CRC8 for payload authentication
9 years ago
Max Lv
9d2c14b335
encode auth flag in atyp
9 years ago
Max Lv
42ee808681
add onetime authentication
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>
10 years ago
Max Lv
e5289e9ba4
Replace libasyncns with libudns
10 years ago
Max Lv
2a15e97196
bump version
10 years ago
Max Lv
30c38d319b
add stdint for mingw
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
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
Max Lv
b198d1da2e
bump version
10 years ago
clowwindy
0d926cbb99
add rc4-md5 encryption method
10 years ago
Max Lv
aec9f9bc9a
add license headers
11 years ago
Max Lv
fa2acecd62
clean up
11 years ago
Linus Yang
5e5c853807
darwin: initial support for CommonCrypto API
11 years ago
Linus Yang
71c30b31f3
Fix MinGW PolarSSL build and update readme
11 years ago
Linus Yang
aa20fd708e
Add initial support for PolarSSL crypto library
11 years ago
Linus Yang
21b9258d77
Add initial support for native win32 platform
Should be built against MinGW, and please note that
only ss-local is ported due to lack win32 support of
libasyncns. And libev doesn't support IOCP but only
supports select
11 years ago
Max Lv
d227da2323
Update code style
11 years ago
Max Lv
8eb0b9b118
build pass
12 years ago
Max Lv
d4b000090f
WiP
12 years ago
Max Lv
c2302b432a
WiP
12 years ago
Max Lv
60135461ea
handle incomplete header
12 years ago
Linus Yang
48a602cc4e
Improve cipher detection
12 years ago
Max Lv
81b1184de3
fix a bug
12 years ago
Max Lv
2cdf3e18ee
support more ciphers
12 years ago
Max Lv
4a9ff65024
cache key
12 years ago
Max Lv
092f121dc5
fix building on darwin
12 years ago
Max Lv
3f23b53b31
fix a overflow
12 years ago
Max Lv
2f175d7028
WIP: almost there
12 years ago
Max Lv
2d4940d3a2
build passed
12 years ago
Max Lv
2b6e884354
WIP: add aes/des and other ciphers
12 years ago
Max Lv
e2efa22733
embedded libev
12 years ago
Max Lv
0911c4ff76
add json config support
12 years ago
Max Lv
a7a314ed32
refine the code structure
12 years ago
Max Lv
41daacc681
remove openssl dependency
12 years ago
Max Lv
d33088c090
reuse global rc4 key
12 years ago
Max Lv
2e1b2ff5f0
fix libev
12 years ago
Max Lv
4b74df3c16
update bigendian
12 years ago
Max Lv
15b03895fd
update to the latest libev
12 years ago
clowwindy
dd06325bdf
minor fixes
13 years ago