c1be3debfd
* 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
22 lines
414 B
Go
22 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,
|
|
}
|
|
}
|