Documentation ¶
Index ¶
- Constants
- Variables
- func CalcAdler32(input []byte) uint32
- func CalcCRC32(input []byte, length int, value uint32) uint32
- func CheckAdler32(input []byte, l int) bool
- func CheckCRC32(buffer []byte, length int) bool
- func DoCalcCRC32(input []byte, index int, length int, value uint32) uint32
- func DoSetCRC32(buffer []byte, index int, length int)
- func GetHeadSize(data []byte, defaultValue int) int
- func SetCRC32(buffer []byte, length int)
- type ServerInfoForObfs
Constants ¶
View Source
const ObfsHMACSHA1Len = 10
Variables ¶
View Source
var ( ErrAuthSHA1v4CRC32Error = errors.New("auth_sha1_v4 post decrypt data crc32 error") ErrAuthSHA1v4DataLengthError = errors.New("auth_sha1_v4 post decrypt data length error") ErrAuthSHA1v4IncorrectChecksum = errors.New("auth_sha1_v4 post decrypt incorrect checksum") ErrAuthAES128HMACError = errors.New("auth_aes128_* post decrypt hmac error") ErrAuthAES128DataLengthError = errors.New("auth_aes128_* post decrypt length mismatch") ErrAuthAES128IncorrectChecksum = errors.New("auth_aes128_* post decrypt incorrect checksum") ErrTLS12TicketAuthTooShortData = errors.New("tls1.2_ticket_auth too short data") ErrTLS12TicketAuthHMACError = errors.New("tls1.2_ticket_auth hmac verifying failed") ErrTLS12TicketAuthIncorrectMagicNumber = errors.New("tls1.2_ticket_auth incorrect magic number") )
Functions ¶
func CalcAdler32 ¶
func CheckAdler32 ¶
func CheckCRC32 ¶
func DoSetCRC32 ¶
func GetHeadSize ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.