From bc191d035a965c8c4d3d04cb55f68082f0615722 Mon Sep 17 00:00:00 2001 From: ww-rm Date: Sun, 2 Jun 2024 22:34:17 +0800 Subject: [PATCH] fix order --- include/gmalglib/sm2curve.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gmalglib/sm2curve.h b/include/gmalglib/sm2curve.h index fe85695..8dc933a 100644 --- a/include/gmalglib/sm2curve.h +++ b/include/gmalglib/sm2curve.h @@ -46,8 +46,8 @@ extern const UInt256* const SM2_PARAMS_N; void SM2JacobPointMont_ToPoint(const SM2JacobPointMont* X, SM2Point* Y); void SM2JacobPointMont_FromPoint(const SM2Point* X, SM2JacobPointMont* Y); -int SM2Point_FromBytes(const uint8_t* bytes, uint64_t bytes_len, SM2Point* X); uint64_t SM2Point_ToBytes(const SM2Point* X, int pc_mode, uint8_t* bytes); +int SM2Point_FromBytes(const uint8_t* bytes, uint64_t bytes_len, SM2Point* X); uint64_t SM2JacobPointMont_ToBytes(const SM2JacobPointMont* X, int pc_mode, uint8_t* bytes); int SM2JacobPointMont_FromBytes(const uint8_t* bytes, uint64_t bytes_len, SM2JacobPointMont* X);