1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-05 03:23:50 +08:00
MiraiGo/protocol/tlv/t187.go
2020-07-06 03:56:25 +08:00

17 lines
299 B
Go

package tlv
import (
"crypto/md5"
"github.com/Mrs4s/MiraiGo/binary"
)
func T187(macAddress []byte) []byte {
return binary.NewWriterF(func(w *binary.Writer) {
w.WriteUInt16(0x187)
w.WriteTlv(binary.NewWriterF(func(w *binary.Writer) {
h := md5.Sum(macAddress)
w.Write(h[:])
}))
})
}