Skip to content

Commit

Permalink
sm4: ppc64x, ecb fix compile issue #249
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Sep 12, 2024
1 parent a945916 commit ac95fea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sm4/ecb_ppc64x.s
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ TEXT ·encryptSm4Ecb(SB),NOSPLIT,$0
#define dstPtr R3
#define srcPtr R4
#define rk R5

#define srcLen R6
// prepare/load constants
VSPLTISW $4, V_FOUR;
#ifdef NEEDS_PERMW
Expand All @@ -78,8 +78,8 @@ TEXT ·encryptSm4Ecb(SB),NOSPLIT,$0
BLT block64

preloop128:
SRD $7, srcLen, R6 // Set up loop counter
MOVD R6, CTR
SRD $7, srcLen, R7 // Set up loop counter
MOVD R7, CTR
MOVD $16, R7
MOVD $32, R8
MOVD $48, R10
Expand Down

0 comments on commit ac95fea

Please sign in to comment.