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#L220: index = subtle.ConstantTimeSelect(lookingForIndex&equals0, i, index)
pkcs1v15.go#L221: lookingForIndex = subtle.ConstantTimeSelect(equals0, 0, lookingForIndex)
pkcs1v15.go#L229: index = subtle.ConstantTimeSelect(valid, index+1, 0)
rsa.go#L770: index = subtle.ConstantTimeSelect(lookingForIndex&equals1, i, index)
rsa.go#L771: lookingForIndex = subtle.ConstantTimeSelect(equals1, 0, lookingForIndex)
rsa.go#L772: invalid = subtle.ConstantTimeSelect(lookingForIndex&^equals0, 1, invalid)
crypto/tls
conn.go#L441: n = subtle.ConstantTimeSelect(int(uint32(n)>>31), 0, n) // if n < 0 { n = 0 }
 |
The pages are generated with Golds v0.7.6. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |