mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-14 00:51:12 +03:00
Add ss aead tests
This commit is contained in:
@@ -14,6 +14,24 @@ import (
|
||||
)
|
||||
|
||||
func TestShadowsocks(t *testing.T) {
|
||||
for _, method := range []string{
|
||||
"aes-128-gcm",
|
||||
"aes-256-gcm",
|
||||
"chacha20-ietf-poly1305",
|
||||
} {
|
||||
t.Run(method+"-inbound", func(t *testing.T) {
|
||||
testShadowsocksInboundWithShadowsocksRust(t, method, mkBase64(t, 16))
|
||||
})
|
||||
t.Run(method+"-outbound", func(t *testing.T) {
|
||||
testShadowsocksOutboundWithShadowsocksRust(t, method, mkBase64(t, 16))
|
||||
})
|
||||
t.Run(method+"-self", func(t *testing.T) {
|
||||
testShadowsocksSelf(t, method, mkBase64(t, 16))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestShadowsocks2022(t *testing.T) {
|
||||
for _, method16 := range []string{
|
||||
"2022-blake3-aes-128-gcm",
|
||||
} {
|
||||
|
||||
Reference in New Issue
Block a user