github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/crypto/subtle/xor.go (about) 1 // Copyright 2022 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package subtle 6 7 // XORBytesはdst[i] = x[i] ^ y[i]をi < n = min(len(x), len(y))のすべてのiに対して設定し、 8 // dstに書き込まれたバイト数であるnを返します。 9 // もしdstの長さが少なくともnでない場合、 10 // XORBytesはなにもdstに書き込まずにパニックを起こします。 11 func XORBytes(dst, x, y []byte) int