func crypto/subtle.ConstantTimeSelect
8 uses
crypto/subtle (current package)
constant_time.go#L29: func ConstantTimeSelect(v, x, y int) int { return ^(v-1)&x | (v-1)&y }
crypto/rsa
pkcs1v15.go#L219: index = subtle.ConstantTimeSelect(lookingForIndex&equals0, i, index)
pkcs1v15.go#L220: lookingForIndex = subtle.ConstantTimeSelect(equals0, 0, lookingForIndex)
pkcs1v15.go#L228: index = subtle.ConstantTimeSelect(valid, index+1, 0)
rsa.go#L771: index = subtle.ConstantTimeSelect(lookingForIndex&equals1, i, index)
rsa.go#L772: lookingForIndex = subtle.ConstantTimeSelect(equals1, 0, lookingForIndex)
rsa.go#L773: invalid = subtle.ConstantTimeSelect(lookingForIndex&^equals0, 1, invalid)
crypto/tls
conn.go#L437: n = subtle.ConstantTimeSelect(int(uint32(n)>>31), 0, n) // if n < 0 { n = 0 }
|
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |