mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 13:41:23 +08:00
33a6579a3a
* Refactor ssr stream cipher to expose iv and key References: https://github.com/Dreamacro/go-shadowsocks2 https://github.com/sh4d0wfiend/go-shadowsocksr2 * Implement ssr obfs Reference: https://github.com/mzz2017/shadowsocksR * Implement ssr protocol References: https://github.com/mzz2017/shadowsocksR https://github.com/shadowsocksRb/shadowsocksr-libev https://github.com/shadowsocksr-backup/shadowsocksr
23 lines
414 B
Go
23 lines
414 B
Go
package protocol
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
"github.com/Dreamacro/clash/component/ssr/tools"
|
|
)
|
|
|
|
func init() {
|
|
register("auth_aes128_sha1", newAuthAES128SHA1)
|
|
}
|
|
|
|
func newAuthAES128SHA1(b *Base) Protocol {
|
|
return &authAES128{
|
|
Base: b,
|
|
recvInfo: &recvInfo{buffer: new(bytes.Buffer)},
|
|
authData: &authData{},
|
|
salt: "auth_aes128_sha1",
|
|
hmac: tools.HmacSHA1,
|
|
hashDigest: tools.SHA1Sum,
|
|
}
|
|
}
|