From d92f6afea1450c76550d92a071c898386c463d57 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Thu, 29 Aug 2024 10:23:41 +0800 Subject: [PATCH] internal/sm2ec: fix ppc64le incorrect K0 constant --- internal/sm2ec/p256_asm_ppc64le.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/sm2ec/p256_asm_ppc64le.s b/internal/sm2ec/p256_asm_ppc64le.s index 309c2c3..7817103 100644 --- a/internal/sm2ec/p256_asm_ppc64le.s +++ b/internal/sm2ec/p256_asm_ppc64le.s @@ -39,8 +39,8 @@ // The following constants are defined in an order // that is correct for use with LXVD2X/STXVD2X // on little endian. -DATA p256ordK0<>+0x00(SB)/8, $0x72350975723509 -DATA p256ordK0<>+0x08(SB)/8, $0x72350975723509 +DATA p256ordK0<>+0x00(SB)/8, $0x7235097572350975 +DATA p256ordK0<>+0x08(SB)/8, $0x7235097572350975 DATA p256ord<>+0x00(SB)/8, $0xfffffffeffffffff DATA p256ord<>+0x08(SB)/8, $0xffffffffffffffff DATA p256ord<>+0x10(SB)/8, $0x7203df6b21c6052b