diff options
| author | Paul E. Murphy <murp@ibm.com> | 2024-11-19 11:28:49 -0600 |
|---|---|---|
| committer | Paul Murphy <murp@ibm.com> | 2024-11-19 18:44:13 +0000 |
| commit | fa52db6a3ff9852dc25368d468d9eda2331e7a7d (patch) | |
| tree | 4748c73b2fce835a87aad17f35caee293ded37b3 /src | |
| parent | 48d260cbd97c1c75900830d2124864d8a1af89f9 (diff) | |
| download | go-fa52db6a3ff9852dc25368d468d9eda2331e7a7d.tar.xz | |
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/internal/fips/aes/gcm/gcm_ppc64x.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/internal/fips/aes/gcm/gcm_ppc64x.go b/src/crypto/internal/fips/aes/gcm/gcm_ppc64x.go index 3325f7b217..c0b90d742f 100644 --- a/src/crypto/internal/fips/aes/gcm/gcm_ppc64x.go +++ b/src/crypto/internal/fips/aes/gcm/gcm_ppc64x.go @@ -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) |
