mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-06-19 14:05:04 +08:00
fix bug.
This commit is contained in:
parent
2e45f82d6a
commit
a12afa5105
@ -68,8 +68,8 @@ func NewEncryptSession(t133 []byte) *EncryptSession {
|
||||
func (e *EncryptSession) DoEncrypt(d, k []byte) []byte {
|
||||
return binary.NewWriterF(func(w *binary.Writer) {
|
||||
encrypt := binary.NewTeaCipher(k).Encrypt(d)
|
||||
w.WriteUInt16(uint16(len(k)))
|
||||
w.Write(k)
|
||||
w.WriteUInt16(uint16(len(e.T133)))
|
||||
w.Write(e.T133)
|
||||
w.Write(encrypt)
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user