From 756ec1e6dff722ea3479a6f2dc740d851db10e7f Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Thu, 7 Nov 2024 17:54:30 +0800 Subject: [PATCH] ppc64x: try VPERMXOR 2 --- sm4/aesni_macros_ppc64x.s | 2 +- zuc/asm_ppc64x.s | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sm4/aesni_macros_ppc64x.s b/sm4/aesni_macros_ppc64x.s index 1c94614..75f3a12 100644 --- a/sm4/aesni_macros_ppc64x.s +++ b/sm4/aesni_macros_ppc64x.s @@ -87,7 +87,7 @@ VAND NIBBLE_MASK, x, z; \ VPERM L, L, z, y; \ VSRB x, V_FOUR, z; \ - VPERMXOR H, z, y, x + VPERMXOR y, H, z, x // Affine Transform // parameters: diff --git a/zuc/asm_ppc64x.s b/zuc/asm_ppc64x.s index 8a10eb7..712a729 100644 --- a/zuc/asm_ppc64x.s +++ b/zuc/asm_ppc64x.s @@ -90,7 +90,7 @@ GLOBL rcon<>(SB), RODATA, $160 VAND NIBBLE_MASK, x, z; \ VPERM L, L, z, y; \ VSRB x, V_FOUR, z; \ - VPERMXOR H, z, y, x + VPERMXOR y, H, z, x #define SHLDL(a, b, n) \ // NO SHLDL in GOLANG now SLW n, a, a \