From a8c906d6bdccd84dd50269ecfb89e277153f9ad4 Mon Sep 17 00:00:00 2001 From: Sahil Sojitra Date: Tue, 7 Apr 2026 14:45:39 +0530 Subject: [PATCH] crypto/keccak: gate amd64 keccak asm on both BMI1 and BMI2 --- crypto/keccak/keccakf_amd64.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/keccak/keccakf_amd64.go b/crypto/keccak/keccakf_amd64.go index 498517a128..e9a0610cc4 100644 --- a/crypto/keccak/keccakf_amd64.go +++ b/crypto/keccak/keccakf_amd64.go @@ -8,7 +8,7 @@ import ( "golang.org/x/sys/cpu" ) -func init() { useASM = cpu.X86.HasBMI2 } +func init() { useASM = cpu.X86.HasBMI2 && cpu.X86.HasBMI1 } //go:noescape func keccakF1600BMI2(a *[200]byte)