Max Lv
032c609c4d
truncate HMAC-SHA1 to 10 bytes
2015-09-24 17:46:46 +08:00
Max Lv
0e79c93ad1
add auth to udprelay
2015-09-23 22:15:59 +08:00
Max Lv
f0f23b4199
replace poly1305 with hmac-sha1
2015-09-23 21:25:48 +08:00
Max Lv
9f553536cb
Use IV + Chunk id as key of BLAKE2b
2015-09-22 18:23:23 +08:00
Max Lv
552fca1bff
Use one time key for BLAKE2b
2015-09-22 17:57:44 +08:00
Max Lv
d3e43e09a2
Refine the authentication for true CCA
2015-09-22 17:57:44 +08:00
Max Lv
5ae4df94e4
Update the hash function
2015-09-21 09:06:48 +08:00
Max Lv
b49edb9095
fix a buffer overflow
2015-09-17 14:19:07 +08:00
Max Lv
53c2900b19
refine onetime auth
2015-09-17 09:59:52 +08:00
Max Lv
703374cae8
fix a buf issue
2015-09-16 09:53:36 +08:00
Max Lv
58e6dbd470
refine the protocol document
2015-09-15 12:45:07 +08:00
Max Lv
9e021aa919
add CRC8 for payload authentication
2015-09-15 12:28:02 +08:00
Max Lv
9d2c14b335
encode auth flag in atyp
2015-09-03 12:29:14 +08:00
Max Lv
42ee808681
add onetime authentication
2015-09-03 08:56:52 +08:00
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 >
2015-08-01 07:52:04 +08:00
Max Lv
e5289e9ba4
Replace libasyncns with libudns
2015-01-10 12:31:13 +09:00
Max Lv
2a15e97196
bump version
2015-01-07 21:54:19 +09:00
Max Lv
30c38d319b
add stdint for mingw
2014-12-13 11:25:00 +00:00
Max Lv
1336881e9f
remove HAVE_SODIUM_H
2014-12-13 18:29:35 +08:00
Max Lv
bca8a499f9
integrate libsodium as a submodule
2014-12-13 11:58:13 +08:00
Max Lv
a0d773ca89
refine the sodium support
2014-12-13 09:42:59 +08:00
Max Lv
aae283faf8
implement encrypt() function
2014-12-12 20:48:11 +08:00
Max Lv
f7d2fc0eb2
add fake ciphers for salsa20 chacha20
2014-12-11 20:42:31 +08:00
Max Lv
b198d1da2e
bump version
2014-11-12 13:12:59 +08:00
clowwindy
0d926cbb99
add rc4-md5 encryption method
2014-09-09 18:55:02 +08:00
Max Lv
aec9f9bc9a
add license headers
2014-05-25 13:13:39 +08:00
Max Lv
fa2acecd62
clean up
2014-04-16 10:44:15 +08:00
Linus Yang
5e5c853807
darwin: initial support for CommonCrypto API
2014-03-09 17:02:06 +08:00
Linus Yang
71c30b31f3
Fix MinGW PolarSSL build and update readme
2013-11-11 16:49:34 +08:00
Linus Yang
aa20fd708e
Add initial support for PolarSSL crypto library
2013-11-11 02:04:48 +08:00
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
2013-09-09 20:59:22 +08:00
Max Lv
d227da2323
Update code style
2013-09-05 09:29:43 +08:00
Max Lv
8eb0b9b118
build pass
2013-08-10 14:47:37 +08:00
Max Lv
d4b000090f
WiP
2013-07-28 17:29:37 +08:00
Max Lv
c2302b432a
WiP
2013-07-28 11:35:17 +08:00
Max Lv
60135461ea
handle incomplete header
2013-06-25 13:23:29 +08:00
Linus Yang
48a602cc4e
Improve cipher detection
2013-06-09 17:25:28 +08:00
Max Lv
81b1184de3
fix a bug
2013-06-04 09:52:57 +08:00
Max Lv
2cdf3e18ee
support more ciphers
2013-06-04 08:48:07 +08:00
Max Lv
4a9ff65024
cache key
2013-05-25 19:21:17 +08:00
Max Lv
092f121dc5
fix building on darwin
2013-05-23 20:46:59 +08:00
Max Lv
3f23b53b31
fix a overflow
2013-05-23 15:58:19 +08:00
Max Lv
2f175d7028
WIP: almost there
2013-05-23 13:54:39 +08:00
Max Lv
2d4940d3a2
build passed
2013-05-23 11:16:45 +08:00
Max Lv
2b6e884354
WIP: add aes/des and other ciphers
2013-05-22 19:55:46 +08:00
Max Lv
e2efa22733
embedded libev
2013-04-01 17:56:39 +08:00