mirror of
https://github.com/emmansun/gmsm.git
synced 2025-06-28 08:23:26 +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 dstPtr R3
|
||||||
#define srcPtr R4
|
#define srcPtr R4
|
||||||
#define rk R5
|
#define rk R5
|
||||||
|
#define srcLen R6
|
||||||
// prepare/load constants
|
// prepare/load constants
|
||||||
VSPLTISW $4, V_FOUR;
|
VSPLTISW $4, V_FOUR;
|
||||||
#ifdef NEEDS_PERMW
|
#ifdef NEEDS_PERMW
|
||||||
@ -78,8 +78,8 @@ TEXT ·encryptSm4Ecb(SB),NOSPLIT,$0
|
|||||||
BLT block64
|
BLT block64
|
||||||
|
|
||||||
preloop128:
|
preloop128:
|
||||||
SRD $7, srcLen, R6 // Set up loop counter
|
SRD $7, srcLen, R7 // Set up loop counter
|
||||||
MOVD R6, CTR
|
MOVD R7, CTR
|
||||||
MOVD $16, R7
|
MOVD $16, R7
|
||||||
MOVD $32, R8
|
MOVD $32, R8
|
||||||
MOVD $48, R10
|
MOVD $48, R10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user