xor

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2023 License: BSD-3-Clause Imports: 0 Imported by: 9

README

xor Go Reference codecov stable

Package xor implements XOR operations on byte slices. Extracted from crypto/cipher.

go get github.com/go-faster/xor
xor.Bytes(dst, a, b)

Ref: #30553 as rejected proposal to provide XOR in go stdlib

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(dst, a, b []byte) int

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL