mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 12:16:20 +08:00
sm4: ppc64x, ecb fix compile issue #249
This commit is contained in:
parent
a9459164b0
commit
ac95feaf4f
@ -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
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user