Documentation
¶
Overview ¶
Package tea from https://github.com/Mrs4s/MiraiGo/blob/master/binary/tea.go
Index ¶
- type TEA
- func (t TEA) Decrypt(data []byte) []byte
- func (t TEA) DecryptLittleEndian(data []byte, sumtable [0x10]uint32) []byte
- func (t TEA) DecryptLittleEndianTo(data []byte, sumtable [0x10]uint32, dst []byte) (from, to int)
- func (t TEA) DecryptTo(data []byte, dst []byte) (from, to int)
- func (t TEA) Encrypt(src []byte) (dst []byte)
- func (t TEA) EncryptLittleEndian(src []byte, sumtable [0x10]uint32) (dst []byte)
- func (t TEA) EncryptLittleEndianTo(src []byte, sumtable [0x10]uint32, dst []byte) int
- func (t TEA) EncryptTo(src []byte, dst []byte) int
- func (t TEA) ToBytes() [16]byte
- func (t TEA) ToBytesLittleEndian() [16]byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TEA ¶
type TEA [4]uint32
func NewTeaCipher ¶
func NewTeaCipherLittleEndian ¶ added in v0.0.6
func (TEA) DecryptLittleEndian ¶ added in v0.0.6
func (TEA) DecryptLittleEndianTo ¶ added in v0.0.8
func (TEA) Encrypt ¶
Encrypt tea 加密 http://bbs.chinaunix.net/thread-583468-1-1.html 感谢xichen大佬对TEA的解释
func (TEA) EncryptLittleEndian ¶ added in v0.0.6
func (TEA) EncryptLittleEndianTo ¶ added in v0.0.8
func (TEA) ToBytesLittleEndian ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.