From ff434b7bd73ea141e5e07e80473c037cdc8491bd Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Thu, 21 Jul 2022 17:37:57 +0800 Subject: [PATCH] sm4: arm64 forget to load IV --- sm4/cbc_cipher_asm_arm64.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sm4/cbc_cipher_asm_arm64.s b/sm4/cbc_cipher_asm_arm64.s index a2b3ba4..06f3790 100644 --- a/sm4/cbc_cipher_asm_arm64.s +++ b/sm4/cbc_cipher_asm_arm64.s @@ -85,7 +85,8 @@ TEXT ·encryptBlocksChain(SB),NOSPLIT,$0 MOVD iv+56(FP), R5 VEOR ZERO.B16, ZERO.B16, ZERO.B16 - + VLD1 (R5), [IV.B16] + loopSrc: CMP $16, ptxLen BLT done_sm4