some old eth* functions will be duplicated

update-fork
MITSUNARI Shigeo 5 years ago
parent 3acf697650
commit 74f1b42f72
  1. 2
      include/mcl/bn.h
  2. 2
      include/mcl/bn.hpp

@ -226,6 +226,7 @@ MCLBN_DLL_API int mclBn_setMapToMode(int mode);
return 0 if success
@note append zero byte to msg if necessary
*/
// deprecated
MCLBN_DLL_API int mclBn_ethMsgToFp2(mclBnFp2 *out, const void *msg, size_t msgSize, uint8_t ctr, const void *dst, size_t dstSize);
/*
@ -240,6 +241,7 @@ MCLBN_DLL_API int mclBn_ethFp2ToG2(mclBnG2 *out, const mclBnFp2 *t1, const mclBn
@note append zero byte to msg if necessary
return 0 if success
*/
// deprecated
MCLBN_DLL_API int mclBn_ethMsgToG2(mclBnG2 *out, const void *msg, size_t msgSize, const void *dst, size_t dstSize);
////////////////////////////////////////////////

@ -2208,6 +2208,7 @@ inline const Fr& getG2cofactorAdjInv()
return BN::param.mapTo.g2cofactorAdjInv_;
}
// deprecated
inline bool ethMsgToFp2(Fp2& out, const void *msg, size_t msgSize, uint8_t ctr, const void *dst, size_t dstSize)
{
if (!BN::param.isBLS12) return false;
@ -2222,6 +2223,7 @@ inline bool ethFp2ToG2(G2& out, const Fp2& t1, const Fp2 *t2 = 0)
return true;
}
// deprecated
inline bool ethMsgToG2(G2& out, const void *msg, size_t msgSize, const void *dst, size_t dstSize)
{
if (!BN::param.isBLS12) return false;

Loading…
Cancel
Save