From e5358262917f84fcefd413b1c4dea57704cf7d99 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 25 Sep 2024 13:43:44 +0800 Subject: [PATCH] sm3: ppc64x, confirm understanding --- sm3/sm3blocks_ppc64x.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sm3/sm3blocks_ppc64x.s b/sm3/sm3blocks_ppc64x.s index fbf63c4..5ec346f 100644 --- a/sm3/sm3blocks_ppc64x.s +++ b/sm3/sm3blocks_ppc64x.s @@ -195,8 +195,7 @@ GLOBL ·mask(SB), RODATA, $80 VOR b, b, TMP1 \ PROLD(TMP1, b, 9) \ // b = b <<< 9 VOR TMP4, TMP4, h \ // h = TT1 - PROLD(f, TMP1, 10) \ - PROLD(TMP1, f, 9) \ // f = f <<< 19, Here we had to ROTL twice: ROTL 10, then ROTL 9 + PROLD(f, f, 19) \ // f = f <<< 19 PROLD(TMP3, TMP1, 9) \ // TMP1 = TT2 <<< 9 PROLD(TMP1, TMP0, 8) \ // TMP0 = TT2 <<< 17 VXOR TMP3, TMP1, TMP1 \ // TMP1 = TT2 XOR (TT2 <<< 9)