func crypto/subtle.ConstantTimeSelect
10 uses
crypto/subtle (current package)
constant_time.go#L28: func ConstantTimeSelect(v, x, y int) int { return ^(v-1)&x | (v-1)&y }
crypto/rsa
pkcs1v15.go#L164: index = subtle.ConstantTimeSelect(lookingForIndex&equals0, i, index)
pkcs1v15.go#L165: lookingForIndex = subtle.ConstantTimeSelect(equals0, 0, lookingForIndex)
pkcs1v15.go#L173: index = subtle.ConstantTimeSelect(valid, index+1, 0)
rsa.go#L649: index = subtle.ConstantTimeSelect(lookingForIndex&equals1, i, index)
rsa.go#L650: lookingForIndex = subtle.ConstantTimeSelect(equals1, 0, lookingForIndex)
rsa.go#L651: invalid = subtle.ConstantTimeSelect(lookingForIndex&^equals0, 1, invalid)
crypto/tls
conn.go#L423: n = subtle.ConstantTimeSelect(int(uint32(n)>>31), 0, n) // if n < 0 { n = 0 }
golang.org/x/crypto/openpgp/elgamal
elgamal.go#L97: index = subtle.ConstantTimeSelect(lookingForIndex&equals0, i, index)
elgamal.go#L98: lookingForIndex = subtle.ConstantTimeSelect(equals0, 0, lookingForIndex)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |