Source File
xor.go
Belonging Package
mellium.im/sasl
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !go1.20
package sasl
// TODO: remove all the specialized XOR code and use "crypto/subtle".XORBytes
// when Go v1.21 comes out. For more information see:
// https://mellium.im/issue/338
func (, , []byte) int {
:= len()
if len() < {
= len()
}
if == 0 {
return 0
}
if > len() {
panic("subtle.XORBytes: dst too short")
}
xorBytes(&[0], &[0], &[0], ) // arch-specific
return
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)