]> Cypherpunks repositories - gostls13.git/commit
crypto/dsa: change bitwise checks to mod operations
authorKatie Hockman <katie@golang.org>
Fri, 1 Nov 2019 15:15:44 +0000 (11:15 -0400)
committerKatie Hockman <katie@golang.org>
Sat, 2 Nov 2019 15:46:47 +0000 (15:46 +0000)
commitdc0c23ec9d5a89b8bdc3aed8e0b8a31a0c6fee69
tree30710f690235dd92439d24a0ddbee1aa1abcbdd6
parent8de0bb77ebc3408a586ad96a3c9ae9c231fd15a3
crypto/dsa: change bitwise checks to mod operations

Even though bitwise operations may be slightly more
performant, the readability improvement of a mod
operation is worth the tradeoff.

Change-Id: I352c92ad355c6eb6ef99e3da00e1eff2d2ea5812
Reviewed-on: https://go-review.googlesource.com/c/go/+/204739
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/dsa/dsa.go