1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00
MiraiGo/internal/tlv/t187.go

18 lines
307 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.WriteBytesShort(binary.NewWriterF(func(w *binary.Writer) {
h := md5.Sum(macAddress)
w.Write(h[:])
}))
})
}