diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-07-07 18:15:45 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-07-07 18:15:45 +0800 |
commit | e9012b679e31306f85e87d9de3ae1320a85e0492 (patch) | |
tree | 87e139981e2d1c667f0fe5a87a23f0687df444e3 /include/bls | |
parent | d1f1c8081c37eb9890c4e2952681f1d73745fbea (diff) | |
download | dexon-bls-e9012b679e31306f85e87d9de3ae1320a85e0492.tar dexon-bls-e9012b679e31306f85e87d9de3ae1320a85e0492.tar.gz dexon-bls-e9012b679e31306f85e87d9de3ae1320a85e0492.tar.bz2 dexon-bls-e9012b679e31306f85e87d9de3ae1320a85e0492.tar.lz dexon-bls-e9012b679e31306f85e87d9de3ae1320a85e0492.tar.xz dexon-bls-e9012b679e31306f85e87d9de3ae1320a85e0492.tar.zst dexon-bls-e9012b679e31306f85e87d9de3ae1320a85e0492.zip |
move mclBn_* to mcl
Diffstat (limited to 'include/bls')
-rw-r--r-- | include/bls/bls.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h index a56120c..f063ca6 100644 --- a/include/bls/bls.h +++ b/include/bls/bls.h @@ -121,25 +121,6 @@ BLS_DLL_API void blsSign(blsSignature *sig, const blsSecretKey *sec, const void BLS_DLL_API int blsVerify(const blsSignature *sig, const blsPublicKey *pub, const void *m, size_t size); BLS_DLL_API int blsVerifyPop(const blsSignature *sig, const blsPublicKey *pub); -/* - Lagrange interpolation - recover out = y(0) by { (xVec[i], yVec[i]) } - return 0 if success else -1 - @note k >= 2, xVec[i] != 0, xVec[i] != xVec[j] for i != j -*/ -BLS_DLL_API int mclBn_FrLagrangeInterpolation(mclBnFr *out, const mclBnFr *xVec, const mclBnFr *yVec, size_t k); -BLS_DLL_API int mclBn_G1LagrangeInterpolation(mclBnG1 *out, const mclBnFr *xVec, const mclBnG1 *yVec, size_t k); -BLS_DLL_API int mclBn_G2LagrangeInterpolation(mclBnG2 *out, const mclBnFr *xVec, const mclBnG2 *yVec, size_t k); - -/* - evaluate polynomial - out = f(x) = c[0] + c[1] * x + c[2] * x^2 + ... + c[cSize - 1] * x^(cSize - 1) - @note cSize >= 2 -*/ -BLS_DLL_API int mclBn_FrEvaluatePolynomial(mclBnFr *out, const mclBnFr *cVec, size_t cSize, const mclBnFr *x); -BLS_DLL_API int mclBn_G1EvaluatePolynomial(mclBnG1 *out, const mclBnG1 *cVec, size_t cSize, const mclBnFr *x); -BLS_DLL_API int mclBn_G2EvaluatePolynomial(mclBnG2 *out, const mclBnG2 *cVec, size_t cSize, const mclBnFr *x); - ////////////////////////////////////////////////////////////////////////// // the following apis will be removed |