|
|
|
@ -279,20 +279,22 @@ MCLBN_DLL_API int mclBnFr_isValid(const mclBnFr *x); |
|
|
|
|
MCLBN_DLL_API int mclBnFr_isEqual(const mclBnFr *x, const mclBnFr *y); |
|
|
|
|
MCLBN_DLL_API int mclBnFr_isZero(const mclBnFr *x); |
|
|
|
|
MCLBN_DLL_API int mclBnFr_isOne(const mclBnFr *x); |
|
|
|
|
MCLBN_DLL_API int mclBnFr_isOdd(const mclBnFr *x); |
|
|
|
|
// return 1 if half <= x < r, where half = (r + 1) / 2 else 0
|
|
|
|
|
MCLBN_DLL_API int mclBnFr_isNegative(const mclBnFr *x); |
|
|
|
|
|
|
|
|
|
MCLBN_DLL_API int mclBnFp_isValid(const mclBnFp *x); |
|
|
|
|
MCLBN_DLL_API int mclBnFp_isEqual(const mclBnFp *x, const mclBnFp *y); |
|
|
|
|
MCLBN_DLL_API int mclBnFp_isZero(const mclBnFp *x); |
|
|
|
|
MCLBN_DLL_API int mclBnFp_isOne(const mclBnFp *x); |
|
|
|
|
MCLBN_DLL_API int mclBnFp_isOdd(const mclBnFp *x); |
|
|
|
|
// return 1 if half <= x < p, where half = (p + 1) / 2 else 0
|
|
|
|
|
MCLBN_DLL_API int mclBnFp_isNegative(const mclBnFp *x); |
|
|
|
|
|
|
|
|
|
MCLBN_DLL_API int mclBnFp2_isEqual(const mclBnFp2 *x, const mclBnFp2 *y); |
|
|
|
|
MCLBN_DLL_API int mclBnFp2_isZero(const mclBnFp2 *x); |
|
|
|
|
MCLBN_DLL_API int mclBnFp2_isOne(const mclBnFp2 *x); |
|
|
|
|
|
|
|
|
|
// return 1 if half <= x < r, where half = (r + 1) / 2 else 0
|
|
|
|
|
MCLBN_DLL_API int mclBnFr_isNegative(const mclBnFr *x); |
|
|
|
|
// return 1 if half <= x < p, where half = (p + 1) / 2 else 0
|
|
|
|
|
MCLBN_DLL_API int mclBnFp_isNegative(const mclBnFp *x); |
|
|
|
|
|
|
|
|
|
#ifndef MCL_DONT_USE_CSRPNG |
|
|
|
|
// return 0 if success
|
|
|
|
|