1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-17 08:23:41 -04:00
v2fly/proxy/vmess/protocol/hash.go

16 lines
190 B
Go
Raw Normal View History

2016-01-12 05:52:40 -05:00
package protocol
2016-01-12 05:38:43 -05:00
import (
"crypto/hmac"
"crypto/md5"
"hash"
)
func TimestampHash() hash.Hash {
return md5.New()
}
func IDHash(key []byte) hash.Hash {
return hmac.New(md5.New, key)
}