From 1b66212377e5a10768457163b5ac1ddc1ff12d63 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 14 Oct 2025 10:37:30 +0800 Subject: [PATCH] internal/sm2ec: missing definition --- internal/sm2ec/sm2p256_asm_loong64.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/sm2ec/sm2p256_asm_loong64.go b/internal/sm2ec/sm2p256_asm_loong64.go index 25acc97..de0d612 100644 --- a/internal/sm2ec/sm2p256_asm_loong64.go +++ b/internal/sm2ec/sm2p256_asm_loong64.go @@ -48,3 +48,8 @@ func p256Sqr(res, in *p256Element, n int) // //go:noescape func p256FromMont(res, in *p256Element) + +// p256OrdReduce ensures s is in the range [0, ord(G)-1]. +// +//go:noescape +func p256OrdReduce(s *p256OrdElement)