mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
26 lines
413 B
Go
26 lines
413 B
Go
![]() |
package protocol
|
||
|
|
||
|
import (
|
||
|
"bytes"
|
||
|
|
||
|
"github.com/nadoo/glider/proxy/ssr/internal/tools"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
register("auth_aes128_sha1", NewAuthAES128SHA1)
|
||
|
}
|
||
|
|
||
|
func NewAuthAES128SHA1() IProtocol {
|
||
|
a := &authAES128{
|
||
|
salt: "auth_aes128_sha1",
|
||
|
hmac: tools.HmacSHA1,
|
||
|
hashDigest: tools.SHA1Sum,
|
||
|
packID: 1,
|
||
|
recvInfo: recvInfo{
|
||
|
recvID: 1,
|
||
|
buffer: bytes.NewBuffer(nil),
|
||
|
},
|
||
|
}
|
||
|
return a
|
||
|
}
|