mirror of
https://github.com/golang/go
synced 2024-11-25 00:07:56 -07:00
crypto/internal/fips/aes/gcm: fix PPC64 gcm debug option logic
AES-GCM is always supported, unless the debug option explicitly turns it off. Change-Id: Iac17fd8429307d48daa601249a2505bcd1b1f892 Reviewed-on: https://go-review.googlesource.com/c/go/+/629695 Reviewed-by: Filippo Valsorda <filippo@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Archana Ravindar <aravinda@redhat.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
parent
48d260cbd9
commit
fa52db6a3f
@ -29,7 +29,7 @@ func counterCryptASM(nr int, out, in []byte, counter *[gcmBlockSize]byte, key *u
|
||||
// at runtime with GODEBUG=cpu.something=off, so introduce a new GODEBUG
|
||||
// knob for that. It's intentionally only checked at init() time, to
|
||||
// avoid the performance overhead of checking it every time.
|
||||
var supportsAESGCM = godebug.New("#ppc64gcm").Value() == "off"
|
||||
var supportsAESGCM = godebug.New("#ppc64gcm").Value() != "off"
|
||||
|
||||
func init() {
|
||||
impl.Register("gcm", "POWER8", &supportsAESGCM)
|
||||
|
Loading…
Reference in New Issue
Block a user