Kim
08f873adc7
Roll up year to 2016
9 years ago
Syrone Wong
5c3ed5c9c1
add IETF-compatible Chacha20 cipher support
Note:
- ChaCha20 with an extended (96 bit) nonce and a 32-bit counter has
been implemented as crypto_stream_chacha20_ietf() from LibSodium 1.0.4
- The name of new cipher is "chacha20-ietf"
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
9 years ago
Max Lv
d2ef245a05
Refine buffer allocation (2)
9 years ago
Max Lv
b0600a8784
Refine buffer handling
9 years ago
Max Lv
f4fa30da5c
Refine buffer handling
9 years ago
Max Lv
032c609c4d
truncate HMAC-SHA1 to 10 bytes
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
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
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>
9 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
11 years ago
Max Lv
d4b000090f
WiP
11 years ago
Max Lv
c2302b432a
WiP
11 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