mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
common/bitutil: mark XORBytes deprecated
This commit is contained in:
parent
5a484d2393
commit
96b2c817f0
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue