Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type ISendingPacket ¶
type IncomingPacket ¶
type IncomingPacket struct { SequenceId uint16 Flag2 byte CommandName string SessionId []byte Payload []byte }
func ParseIncomingPacket ¶
func ParseIncomingPacket(payload, d2key []byte) (*IncomingPacket, error)
func (*IncomingPacket) DecryptPayload ¶
func (pkt *IncomingPacket) DecryptPayload(ecdhShareKey, random, sessionKey []byte) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.