mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 21:51:23 +08:00
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,
|
||
|
}
|
||
|
}
|