github.com/igoogolx/clash@v1.19.8/transport/ssr/protocol/auth_aes128_md5.go (about)

     1  package protocol
     2  
     3  import "github.com/igoogolx/clash/transport/ssr/tools"
     4  
     5  func init() {
     6  	register("auth_aes128_md5", newAuthAES128MD5, 9)
     7  }
     8  
     9  func newAuthAES128MD5(b *Base) Protocol {
    10  	a := &authAES128{
    11  		Base:               b,
    12  		authData:           &authData{},
    13  		authAES128Function: &authAES128Function{salt: "auth_aes128_md5", hmac: tools.HmacMD5, hashDigest: tools.MD5Sum},
    14  		userData:           &userData{},
    15  	}
    16  	a.initUserData()
    17  	return a
    18  }