diff --git a/sm2/p256.go b/sm2/p256.go index 70a0ec9..9420320 100644 --- a/sm2/p256.go +++ b/sm2/p256.go @@ -1,5 +1,5 @@ -//go:build !amd64 -// +build !amd64 +//go:build !amd64 && !arm64 +// +build !amd64,!arm64 package sm2 diff --git a/sm2/p256_asm_table.go b/sm2/p256_asm_table.go index 173eeb6..1197434 100644 --- a/sm2/p256_asm_table.go +++ b/sm2/p256_asm_table.go @@ -1,6 +1,6 @@ // Generated by gen_p256_table.go. DO NOT EDIT. -//go:build amd64 -// +build amd64 +//go:build amd64 || arm64 +// +build amd64 arm64 package sm2 diff --git a/sm2/p256_asm_table_test.go b/sm2/p256_asm_table_test.go index ace564b..518d253 100644 --- a/sm2/p256_asm_table_test.go +++ b/sm2/p256_asm_table_test.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build amd64 -// +build amd64 +//go:build amd64 || arm64 +// +build amd64 arm64 package sm2 diff --git a/sm2/p256_asm_test.go b/sm2/p256_asm_test.go index b74f793..1785b0e 100644 --- a/sm2/p256_asm_test.go +++ b/sm2/p256_asm_test.go @@ -1,5 +1,5 @@ -//go:build amd64 -// +build amd64 +//go:build amd64 || arm64 +// +build amd64 arm64 package sm2