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);