summaryrefslogtreecommitdiff
path: root/src/pkg/crypto/subtle/constant_time.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/crypto/subtle/constant_time.go')
-rw-r--r--src/pkg/crypto/subtle/constant_time.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/crypto/subtle/constant_time.go b/src/pkg/crypto/subtle/constant_time.go
index a1d2eaf99..4dd7aa042 100644
--- a/src/pkg/crypto/subtle/constant_time.go
+++ b/src/pkg/crypto/subtle/constant_time.go
@@ -21,9 +21,7 @@ func ConstantTimeCompare(x, y []byte) int {
// ConstantTimeSelect returns x if v is 1 and y if v is 0.
// Its behavior is undefined if v takes any other value.
-func ConstantTimeSelect(v, x, y int) int {
- return ^(v-1) & x | (v-1)&y;
-}
+func ConstantTimeSelect(v, x, y int) int { return ^(v-1) & x | (v-1)&y }
// ConstantTimeByteEq returns 1 if x == x and 0 otherwise.
func ConstantTimeByteEq(x, y uint8) int {