aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls/bls.h
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-12-24 15:31:55 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-12-24 15:31:55 +0800
commit57f11a58546030a108ae185fb9079e1b29f1d032 (patch)
tree514c9486cf7971b14e62950b2bb07c36cc878f2c /include/bls/bls.h
parent8c7256c6becf7b3e3249cd280c3ec00bf464c2d1 (diff)
downloaddexon-bls-57f11a58546030a108ae185fb9079e1b29f1d032.tar
dexon-bls-57f11a58546030a108ae185fb9079e1b29f1d032.tar.gz
dexon-bls-57f11a58546030a108ae185fb9079e1b29f1d032.tar.bz2
dexon-bls-57f11a58546030a108ae185fb9079e1b29f1d032.tar.lz
dexon-bls-57f11a58546030a108ae185fb9079e1b29f1d032.tar.xz
dexon-bls-57f11a58546030a108ae185fb9079e1b29f1d032.tar.zst
dexon-bls-57f11a58546030a108ae185fb9079e1b29f1d032.zip
remove old deserialize apinew_deserialize_api
Diffstat (limited to 'include/bls/bls.h')
-rw-r--r--include/bls/bls.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h
index fbb3303..ed01090 100644
--- a/include/bls/bls.h
+++ b/include/bls/bls.h
@@ -88,15 +88,11 @@ BLS_DLL_API mclSize blsSecretKeySerialize(void *buf, mclSize maxBufSize, const b
BLS_DLL_API mclSize blsPublicKeySerialize(void *buf, mclSize maxBufSize, const blsPublicKey *pub);
BLS_DLL_API mclSize blsSignatureSerialize(void *buf, mclSize maxBufSize, const blsSignature *sig);
-#ifdef MCLBN_USE_NEW_DESERIALIZE_API
// return read byte size if success else 0
-#else
-// return 0 if success else -1
-#endif
-BLS_DLL_API mclRetType blsIdDeserialize(blsId *id, const void *buf, mclSize bufSize);
-BLS_DLL_API mclRetType blsSecretKeyDeserialize(blsSecretKey *sec, const void *buf, mclSize bufSize);
-BLS_DLL_API mclRetType blsPublicKeyDeserialize(blsPublicKey *pub, const void *buf, mclSize bufSize);
-BLS_DLL_API mclRetType blsSignatureDeserialize(blsSignature *sig, const void *buf, mclSize bufSize);
+BLS_DLL_API mclSize blsIdDeserialize(blsId *id, const void *buf, mclSize bufSize);
+BLS_DLL_API mclSize blsSecretKeyDeserialize(blsSecretKey *sec, const void *buf, mclSize bufSize);
+BLS_DLL_API mclSize blsPublicKeyDeserialize(blsPublicKey *pub, const void *buf, mclSize bufSize);
+BLS_DLL_API mclSize blsSignatureDeserialize(blsSignature *sig, const void *buf, mclSize bufSize);
// return 1 if same else 0
BLS_DLL_API int blsIdIsEqual(const blsId *lhs, const blsId *rhs);