From b19dfa6d5834bc25b1269123198f8edec0a954a2 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Mon, 26 Jun 2023 16:01:36 +0800 Subject: [PATCH] sm2ec: arm64 test --- internal/sm2ec/p256_asm_arm64.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/sm2ec/p256_asm_arm64.s b/internal/sm2ec/p256_asm_arm64.s index 4a654ab..ae528e9 100644 --- a/internal/sm2ec/p256_asm_arm64.s +++ b/internal/sm2ec/p256_asm_arm64.s @@ -493,7 +493,7 @@ ordSqrLoop: // First reduction step MUL acc0, hlp1, hlp0 - MUL const0, hlp1, t0 + MUL const0, hlp0, t0 ADDS t0, acc0, acc0 UMULH const0, hlp0, t1 @@ -518,7 +518,7 @@ ordSqrLoop: // Second reduction step MUL acc1, hlp1, hlp0 - MUL const0, hlp1, t0 + MUL const0, hlp0, t0 ADDS t0, acc1, acc1 UMULH const0, hlp0, t1 @@ -543,7 +543,7 @@ ordSqrLoop: // Third reduction step MUL acc2, hlp1, hlp0 - MUL const0, hlp1, t0 + MUL const0, hlp0, t0 ADDS t0, acc2, acc2 UMULH const0, hlp0, t1 @@ -569,7 +569,7 @@ ordSqrLoop: // Last reduction step MUL acc3, hlp1, hlp0 - MUL const0, hlp1, t0 + MUL const0, hlp0, t0 ADDS t0, acc3, acc3 UMULH const0, hlp0, t1