Skip to content

Commit

Permalink
sm3: ppc64x, kdf mult by 4, 2
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Sep 6, 2024
1 parent 8a33e62 commit 0cfb42f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sm3/sm3blocks_ppc64x.s
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ GLOBL ·mask(SB), RODATA, $80
VSPLTISW $n, TMP5 \
VRLW s, TMP5, r

#define loadWordByIndex(W, r, i) \
MOVD $(16*(i)), r \
LXVW4X (r)(statePtr), W
#define loadWordByIndex(W, i) \
MOVD $(16*(i)), R19 \
LXVW4X (R19)(statePtr), W

// one word is 16 bytes
#define prepare4Words \
Expand Down

0 comments on commit 0cfb42f

Please sign in to comment.