From 96b2c817f077ab8ede4a31781b1fba7595f50521 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 8 Dec 2025 16:14:57 +0100 Subject: [PATCH] common/bitutil: mark XORBytes deprecated --- common/bitutil/bitutil.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/bitutil/bitutil.go b/common/bitutil/bitutil.go index c68733cb0b..578da1cf49 100644 --- a/common/bitutil/bitutil.go +++ b/common/bitutil/bitutil.go @@ -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) }