| 1 |
package desync |
| 2 |
|
| 3 |
import "github.com/dchest/siphash" |
| 4 |
|
| 5 |
// SipHash is used to calculate the hash in Goodbye element items, hashing the |
| 6 |
// filename. |
| 7 |
func SipHash(b []byte) uint64 { |
| 8 |
return siphash.Hash(CaFormatGoodbyeHashKey0, CaFormatGoodbyeHashKey1, b) |
| 9 |
} |