diff --git a/.github/workflows/test_ppc64.yaml b/.github/workflows/test_ppc64.yaml index 2790359..8e0a82b 100644 --- a/.github/workflows/test_ppc64.yaml +++ b/.github/workflows/test_ppc64.yaml @@ -42,6 +42,19 @@ jobs: GOARCH: ${{ matrix.arch }} GOPPC64: ${{ matrix.ppc64 }} + - name: Test Cipher + run: go test -v -short ./cipher/... + env: + GOARCH: ${{ matrix.arch }} + GOPPC64: ${{ matrix.ppc64 }} + + - name: Test Cipher Force SM4 Single Block with AES-NI + run: go test -v -short ./cipher/... + env: + GOARCH: ${{ matrix.arch }} + GOPPC64: ${{ matrix.ppc64 }} + FORCE_SM4BLOCK_AESNI: 1 + - name: Test Force SM4 Single Block with AES-NI run: go test -v -short ./sm4/... env: diff --git a/sm4/ctr_cipher_asm.go b/sm4/ctr_cipher_asm.go index cce6500..3e5dd35 100644 --- a/sm4/ctr_cipher_asm.go +++ b/sm4/ctr_cipher_asm.go @@ -1,4 +1,4 @@ -//go:build (amd64 || arm64 || ppc64 || ppc64le) && !purego +//go:build (amd64 || arm64) && !purego package sm4