Namespace: go.std.crypto.subtle
v1.0Contents
Summary
Provides a low-level interface to the crypto/subtle package.
Package subtle implements functions that are often useful in cryptographic
code but require careful thought to use correctly.
Index
- ConstantTimeByteEq
- ConstantTimeCompare
- ConstantTimeCopy
- ConstantTimeEq
- ConstantTimeLessOrEq
- ConstantTimeSelect
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
(None.)
Variables
-
(None.)
Functions, Macros, and Special Forms
-
ConstantTimeByteEq
Function v1.0(ConstantTimeByteEq x y)
ConstantTimeByteEq returns 1 if x == y and 0 otherwise.
Go input arguments: (x uint8, y uint8)
Go returns: int
Joker input arguments: [^Int x, ^Int y]
Joker returns: ^Int -
ConstantTimeCompare
Function v1.0(ConstantTimeCompare x y)
ConstantTimeCompare returns 1 if the two slices, x and y, have equal contents
and 0 otherwise. The time taken is a function of the length of the slices and
is independent of the contents.
Go input arguments: (x []byte, y []byte)
Go returns: int
Joker input arguments: [^arrayOfByte x, ^arrayOfByte y]
Joker returns: ^Int -
ConstantTimeCopy
Function v1.0(ConstantTimeCopy v x y)
ConstantTimeCopy copies the contents of y into x (a slice of equal length)
if v == 1. If v == 0, x is left unchanged. Its behavior is undefined if v
takes any other value.
Go input arguments: (v int, x []byte, y []byte)
Joker input arguments: [^Int v, ^arrayOfByte x, ^arrayOfByte y] -
ConstantTimeEq
Function v1.0(ConstantTimeEq x y)
ConstantTimeEq returns 1 if x == y and 0 otherwise.
Go input arguments: (x int32, y int32)
Go returns: int
Joker input arguments: [^Int x, ^Int y]
Joker returns: ^Int -
ConstantTimeLessOrEq
Function v1.0(ConstantTimeLessOrEq x y)
ConstantTimeLessOrEq returns 1 if x <= y and 0 otherwise.
Its behavior is undefined if x or y are negative or > 2**31 - 1.
Go input arguments: (x int, y int)
Go returns: int
Joker input arguments: [^Int x, ^Int y]
Joker returns: ^Int -
ConstantTimeSelect
Function v1.0(ConstantTimeSelect v x y)
ConstantTimeSelect returns x if v == 1 and y if v == 0.
Its behavior is undefined if v takes any other value.
Go input arguments: (v int, x int, y int)
Go returns: int
Joker input arguments: [^Int v, ^Int x, ^Int y]
Joker returns: ^Int
Types
-
(None.)