From 4e5e3d012825e777b0d71d509c5516d587e3e7e0 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Fri, 8 Nov 2024 08:09:45 +0800 Subject: [PATCH] sm4: ppc64x try VPERMXOR --- sm4/aesni_macros_ppc64x.s | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sm4/aesni_macros_ppc64x.s b/sm4/aesni_macros_ppc64x.s index 3d7ab9b..f162c6d 100644 --- a/sm4/aesni_macros_ppc64x.s +++ b/sm4/aesni_macros_ppc64x.s @@ -84,11 +84,7 @@ // - y: 128 bits temp register // - z: 128 bits temp register #define AFFINE_TRANSFORM(L, H, V_FOUR, x, y, z) \ - VAND NIBBLE_MASK, x, z; \ - VPERM L, L, z, y; \ - VSRB x, V_FOUR, z; \ - VPERM H, H, z, x; \ - VXOR y, x, x + VPERMXOR L, H, x, x // Affine Transform // parameters: