common/bitutil: mark XORBytes deprecated

This commit is contained in:
Felix Lange 2025-12-08 16:14:57 +01:00
parent 5a484d2393
commit 96b2c817f0

View file

@ -24,6 +24,8 @@ const supportsUnaligned = runtime.GOARCH == "386" || runtime.GOARCH == "amd64" |
//
// dst and x or y may overlap exactly or not at all,
// otherwise XORBytes may panic.
//
// Deprecated: use crypto/subtle.XORBytes
func XORBytes(dst, a, b []byte) int {
return subtle.XORBytes(dst, a, b)
}