package constanttime
import "crypto/internal/constanttime"
Index ¶
- func ByteEq(x, y uint8) int
- func Eq(x, y int32) int
- func LessOrEq(x, y int) int
- func Select(v, x, y int) int
Functions ¶
func ByteEq ¶
ByteEq returns 1 if x == y and 0 otherwise.
func Eq ¶
Eq returns 1 if x == y and 0 otherwise.
func LessOrEq ¶
LessOrEq returns 1 if x <= y and 0 otherwise. Its behavior is undefined if x or y are negative or > 2**31 - 1.
func Select ¶
Select returns x if v == 1 and y if v == 0. Its behavior is undefined if v takes any other value.
Source Files ¶
- Version
- v1.26.1
- Published
- Mar 5, 2026
- Platform
- linux/amd64
- Last checked
- 46 seconds ago –
Tools for package owners.