Documentation ¶
Index ¶
- Variables
- func CalcAdler32(input []byte) uint32
- func CheckAdler32(input []byte, l int) bool
- func GetHeadSize(data []byte, defaultValue int) int
- func NewAuthAES128MD5(info Protocol) protocol
- func NewAuthAES128SHA1(info Protocol) protocol
- func NewAuthChainA(info Protocol) protocol
- func NewAuthChainB(info Protocol) protocol
- func NewAuthSHA1v4(info Protocol) protocol
- func NewErrorProtocol(err error) protocol
- func NewOrigin(Protocol) protocol
- func NewVerifySHA1(info Protocol) protocol
- type AuthData
- type Protocol
Constants ¶
This section is empty.
Variables ¶
View Source
var ProtocolMethod = map[string]func(Protocol) protocol{ "auth_aes128_sha1": NewAuthAES128SHA1, "auth_aes128_md5": NewAuthAES128MD5, "auth_chain_a": NewAuthChainA, "auth_chain_b": NewAuthChainB, "origin": NewOrigin, "auth_sha1_v4": NewAuthSHA1v4, "verify_sha1": NewVerifySHA1, "ota": NewVerifySHA1, }
Functions ¶
func CalcAdler32 ¶
func CheckAdler32 ¶
func GetHeadSize ¶
func NewAuthAES128MD5 ¶
func NewAuthAES128MD5(info Protocol) protocol
func NewAuthAES128SHA1 ¶
func NewAuthAES128SHA1(info Protocol) protocol
func NewAuthChainA ¶
func NewAuthChainA(info Protocol) protocol
func NewAuthChainB ¶
func NewAuthChainB(info Protocol) protocol
func NewAuthSHA1v4 ¶
func NewAuthSHA1v4(info Protocol) protocol
func NewErrorProtocol ¶
func NewErrorProtocol(err error) protocol
func NewVerifySHA1 ¶
func NewVerifySHA1(info Protocol) protocol
Types ¶
Click to show internal directories.
Click to hide internal directories.