Discover Packages
github.com/iDigitalFlame/xmt
data
crypto
subtle
package
Version:
v0.5.7
Opens a new window with list of versions in this module.
Published: Jul 30, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package subtle is similar to the 'cipher/subtle', only needed for very specific
crypto operations.
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(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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.