subtle

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package subtle is similar to the 'cipher/subtle', only needed for very specific crypto operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func XorBytes

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

XorBytes is the runtime import from "crypto/cipher.xorBytes" that can use hardware instructions for a 200% faster XOR operation.

This variant will overlap the xor for the entire backing array, depending on which one is larger.

func XorOp

func XorOp(value, key []byte)

XorOp will call the 'XorBytes' function but write the value back to the value instead. This one assumes that the key value is less than or equal to the value.

If you need finer control, use the 'XorBytes' function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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