Files
DragonTCP/core/internal/protocol/xor_generic.go
T
2026-08-16 02:33:07 -03:00

11 lines
192 B
Go

//go:build !amd64 && !arm64 && !arm && !386
package protocol
// Generic fallback for 32-bit and uncommon architectures.
func XorInPlace(b []byte) {
for i := range b {
b[i] ^= XORKey
}
}