Discover Packages
github.com/RyuaNerin/go-krypto
internal
subtle
package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Aug 17, 2024
License: MIT
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.
Jump to ...
Documentation
Index
Constants
Variables
Functions
ConstantTimeByteEq(x, y)
ConstantTimeCompare(x, y)
ConstantTimeCopy(v, x, y)
ConstantTimeEq(x, y)
ConstantTimeLessOrEq(x, y)
ConstantTimeSelect(v, x, y)
XORBytes(dst, x, y)
Types
Source Files
Documentation
Documentation
¶
func ConstantTimeByteEq(x, y uint8) int
func ConstantTimeCompare(x, y []byte) int
func ConstantTimeCopy(v int, x, y []byte)
func ConstantTimeEq(x, y int32) int
func ConstantTimeLessOrEq(x, y int) int
func ConstantTimeSelect(v, x, y int) int
func XORBytes(dst, x, y []byte) int
func ConstantTimeCompare(x, y []byte ) int
func ConstantTimeCopy(v int , x, y []byte )
func ConstantTimeLessOrEq(x, y int ) int
func ConstantTimeSelect(v, x, y int ) int
func XORBytes(dst, x, y []byte ) int
XORBytes sets dst[i] = x[i] ^ y[i] for all i < n = min(len(x), len(y)),
returning n, the number of bytes written to dst.
If dst does not have length at least n,
XORBytes panics without writing anything to dst.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.