mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 20:56:18 +08:00
sm4: ppc64x, fix ecb #249
This commit is contained in:
parent
062662836a
commit
a9459164b0
@ -1,4 +1,4 @@
|
|||||||
//go:build (amd64 || arm64 || ppc64 || ppc64le)) && !purego
|
//go:build (amd64 || arm64 || ppc64 || ppc64le) && !purego
|
||||||
|
|
||||||
package sm4
|
package sm4
|
||||||
|
|
||||||
|
@ -59,7 +59,6 @@ TEXT ·encryptSm4Ecb(SB),NOSPLIT,$0
|
|||||||
#define dstPtr R3
|
#define dstPtr R3
|
||||||
#define srcPtr R4
|
#define srcPtr R4
|
||||||
#define rk R5
|
#define rk R5
|
||||||
#define rkSave R6
|
|
||||||
|
|
||||||
// prepare/load constants
|
// prepare/load constants
|
||||||
VSPLTISW $4, V_FOUR;
|
VSPLTISW $4, V_FOUR;
|
||||||
@ -79,8 +78,8 @@ TEXT ·encryptSm4Ecb(SB),NOSPLIT,$0
|
|||||||
BLT block64
|
BLT block64
|
||||||
|
|
||||||
preloop128:
|
preloop128:
|
||||||
SRD $7, srcLen, R7 // Set up loop counter
|
SRD $7, srcLen, R6 // Set up loop counter
|
||||||
MOVD R7, CTR
|
MOVD R6, 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