From d2adcd78b029689e104d428cc228b95193bcaf4b Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 10 Sep 2024 22:37:31 +0800 Subject: [PATCH] Update asm_ppc64x.s --- sm4/asm_ppc64x.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sm4/asm_ppc64x.s b/sm4/asm_ppc64x.s index 8273615..a5197a2 100644 --- a/sm4/asm_ppc64x.s +++ b/sm4/asm_ppc64x.s @@ -127,9 +127,9 @@ GLOBL ·rcon(SB), RODATA, $192 ; \ //#################### 4 parallel L2 linear transforms ##################// VSPLTISW $13, z; \ VRLW x, z, y; \ // y = x <<< 13 - VXOR x, y, y; \ + VXOR x, y, x; \ VSPLTISW $10, z; \ - VRLW x, z, x; \ // x = x <<< 10 + VRLW y, z, y; \ // x = x <<< 10 VXOR x, y, x #define SM4_EXPANDKEY_ROUND(CK, x, y, z, t0, t1, t2, t3, target) \