package
module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Dec 13, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
xor
Package xor implements XOR operations on byte slices.
Extracted from crypto/cipher.
Reference
- issues/30553 as rejected proposal to provide XOR in go stdlib
Documentation
¶
Bytes xors the bytes in a and b. The destination should have enough
space, otherwise Bytes will panic. Returns the number of bytes xor'd.
func Words(dst, a, b []byte)
Words XORs multiples of 4 or 8 bytes (depending on architecture.)
The slice arguments a and b are assumed to be of equal length.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.