Go stdlib package — crypto/subtle. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.ConstantTimeByteEq()NeutralConstantTimeByteEq(x uint8, y uint8) int
ConstantTimeByteEq returns 1 if x == y and 0 otherwise.
.ConstantTimeCompare()NeutralConstantTimeCompare(x []byte, y []byte) int
ConstantTimeCompare returns 1 if the two slices, x and y, have equal contents
.ConstantTimeCopy()NeutralConstantTimeCopy(v int, x []byte, y []byte)
ConstantTimeCopy copies the contents of y into x (a slice of equal length)
.ConstantTimeEq()NeutralConstantTimeEq(x int32, y int32) int
ConstantTimeEq returns 1 if x == y and 0 otherwise.
.ConstantTimeLessOrEq()NeutralConstantTimeLessOrEq(x int, y int) int
ConstantTimeLessOrEq returns 1 if x <= y and 0 otherwise.
.ConstantTimeSelect()NeutralConstantTimeSelect(v int, x int, y int) int
ConstantTimeSelect returns x if v == 1 and y if v == 0.
.XORBytes()NeutralXORBytes(dst []byte, x []byte, y []byte) int
XORBytes sets dst[i] = x[i] ^ y[i] for all i < n = min(len(x), len(y)),
| FQN | Field | |
|---|---|---|
| crypto/subtle | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # crypto/subtle