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
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
5fd6cd22f7
darwin: applecc: fix compile warnings
11 years ago
Linus Yang
8f88399ffc
darwin: applecc: fix iv not randomized issue
11 years ago
Linus Yang
5e5c853807
darwin: initial support for CommonCrypto API
11 years ago
Max Lv
c8a05c87c6
fix a warning while initializing a struct
11 years ago
Max Lv
2c78ccfbf8
fix a timeout issue
11 years ago
Max Lv
ed1780edac
dump with strlen
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
Max Lv
85fcbed91d
fix a typo
11 years ago
Max Lv
a2366da1a6
fix #15
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