Skip to content

Commit 181ef53

Browse files
committed
Update shadowsocks-rust and add back some ciphers
Fix #2705 and #2663.
1 parent 44dc47f commit 181ef53

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

core/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ cargo {
4040
extraCargoBuildArguments = listOf("--bin", libname!!)
4141
featureSpec.noDefaultBut(arrayOf(
4242
"stream-cipher",
43+
"aead-cipher-extra",
4344
"logging",
4445
"local-flow-stat",
4546
"local-dns"))

core/src/main/java/com/github/shadowsocks/bg/ProxyInstance.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
5656
}
5757
// check the crypto
5858
val deprecatedCiphers
59-
= arrayOf("xchacha20-ietf-poly1305", "aes-192-gcm", "chacha20", "salsa20")
59+
= arrayOf("aes-192-gcm", "chacha20", "salsa20")
6060
for (c in deprecatedCiphers)
6161
{
6262
if (profile.method == c) {

core/src/main/res/values/arrays.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<item>AES-128-GCM</item>
1818
<item>AES-256-GCM</item>
1919
<item>CHACHA20-IETF-POLY1305</item>
20+
<item>XCHACHA20-IETF-POLY1305</item>
2021
</string-array>
2122

2223
<string-array name="enc_method_value" translatable="false">
@@ -36,6 +37,7 @@
3637
<item>aes-128-gcm</item>
3738
<item>aes-256-gcm</item>
3839
<item>chacha20-ietf-poly1305</item>
40+
<item>xchacha20-ietf-poly1305</item>
3941
</string-array>
4042

4143
<string-array name="bypass_private_route" translatable="false">
Submodule shadowsocks-rust updated 44 files

0 commit comments

Comments
 (0)