diff --git a/sm2/p256_asm_amd64.s b/sm2/p256_asm_amd64.s index 7b41b92..6816d58 100644 --- a/sm2/p256_asm_amd64.s +++ b/sm2/p256_asm_amd64.s @@ -4,6 +4,8 @@ // 256-bit primes" // https://link.springer.com/article/10.1007%2Fs13389-014-0090-x // https://eprint.iacr.org/2013/816.pdf +//go:build amd64 && !generic +// +build amd64,!generic #include "textflag.h" diff --git a/sm2/p256_asm_arm64.s b/sm2/p256_asm_arm64.s index 81c3d75..f379a9c 100644 --- a/sm2/p256_asm_arm64.s +++ b/sm2/p256_asm_arm64.s @@ -4,6 +4,8 @@ // 256-bit primes" // http://link.springer.com/article/10.1007%2Fs13389-014-0090-x // https://eprint.iacr.org/2013/816.pdf +//go:build arm64 && !generic +// +build arm64,!generic #include "textflag.h" diff --git a/sm3/sm3block_amd64.s b/sm3/sm3block_amd64.s index 2af2013..8172520 100644 --- a/sm3/sm3block_amd64.s +++ b/sm3/sm3block_amd64.s @@ -1,3 +1,6 @@ +//go:build amd64 && !generic +// +build amd64,!generic + #include "textflag.h" // Wt = Mt; for 0 <= t <= 3 diff --git a/sm3/sm3block_arm64.s b/sm3/sm3block_arm64.s index 9e43c8d..8e38e0d 100644 --- a/sm3/sm3block_arm64.s +++ b/sm3/sm3block_arm64.s @@ -1,3 +1,6 @@ +//go:build arm64 && !generic +// +build arm64,!generic + #include "textflag.h" #define SI R0 diff --git a/sm3/sm3blockni_arm64.s b/sm3/sm3blockni_arm64.s index 4884d37..ed33bf9 100644 --- a/sm3/sm3blockni_arm64.s +++ b/sm3/sm3blockni_arm64.s @@ -1,4 +1,6 @@ // Generated by gen_sm3block_ni.go. DO NOT EDIT. +//go:build arm64 && !generic +// +build arm64,!generic #include "textflag.h" diff --git a/sm4/asm_amd64.s b/sm4/asm_amd64.s index 3c80ecd..94b6908 100644 --- a/sm4/asm_amd64.s +++ b/sm4/asm_amd64.s @@ -1,4 +1,7 @@ // This SM4 implementation referenced https://github.com/mjosaarinen/sm4ni/blob/master/sm4ni.c +//go:build amd64 && !generic +// +build amd64,!generic + #include "textflag.h" #define x X0 diff --git a/sm4/asm_arm64.s b/sm4/asm_arm64.s index b14d356..fd8c20b 100644 --- a/sm4/asm_arm64.s +++ b/sm4/asm_arm64.s @@ -1,3 +1,6 @@ +//go:build arm64 && !generic +// +build arm64,!generic + #include "textflag.h" #define x V0 diff --git a/sm4/gcm_amd64.s b/sm4/gcm_amd64.s index d10da2a..10ccd3f 100644 --- a/sm4/gcm_amd64.s +++ b/sm4/gcm_amd64.s @@ -4,6 +4,8 @@ // Instruction and its Usage for Computing the GCM Mode rev. 2.02 // [2] Gueron, S., Krasnov, V.: Speeding up Counter Mode in Software and // Hardware +//go:build amd64 && !generic +// +build amd64,!generic #include "textflag.h" diff --git a/sm4/gcm_arm64.s b/sm4/gcm_arm64.s index ad496a5..d27aba4 100644 --- a/sm4/gcm_arm64.s +++ b/sm4/gcm_arm64.s @@ -1,3 +1,6 @@ +//go:build arm64 && !generic +// +build arm64,!generic + #include "textflag.h" //nibble mask diff --git a/sm4/gcm_sm4ni_arm64.s b/sm4/gcm_sm4ni_arm64.s index 19eae24..e8c9978 100644 --- a/sm4/gcm_sm4ni_arm64.s +++ b/sm4/gcm_sm4ni_arm64.s @@ -1,3 +1,6 @@ +//go:build arm64 && !generic +// +build arm64,!generic + #include "textflag.h" #define B0 V0