|
|
|
@ -465,7 +465,8 @@ MCLBN_DLL_API int mclBn_G2LagrangeInterpolation(mclBnG2 *out, const mclBnFr *xVe |
|
|
|
|
/*
|
|
|
|
|
evaluate polynomial |
|
|
|
|
out = f(x) = c[0] + c[1] * x + c[2] * x^2 + ... + c[cSize - 1] * x^(cSize - 1) |
|
|
|
|
@note cSize >= 2 |
|
|
|
|
return 0 if success else -1 |
|
|
|
|
@note cSize >= 1 |
|
|
|
|
*/ |
|
|
|
|
MCLBN_DLL_API int mclBn_FrEvaluatePolynomial(mclBnFr *out, const mclBnFr *cVec, mclSize cSize, const mclBnFr *x); |
|
|
|
|
MCLBN_DLL_API int mclBn_G1EvaluatePolynomial(mclBnG1 *out, const mclBnG1 *cVec, mclSize cSize, const mclBnFr *x); |
|
|
|
|