aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-02-06 15:39:35 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-02-06 15:39:35 +0800
commit94926b3e3fcfced2e7b052e944dfc6355f6ad19e (patch)
tree8e672c0f944776810d0caf78efe2bb3d77ee3d20 /include
parent521f98cf5402c73ad52502714c6ad5019dc637b3 (diff)
downloadtangerine-mcl-94926b3e3fcfced2e7b052e944dfc6355f6ad19e.tar.gz
tangerine-mcl-94926b3e3fcfced2e7b052e944dfc6355f6ad19e.tar.zst
tangerine-mcl-94926b3e3fcfced2e7b052e944dfc6355f6ad19e.zip
[she] add serialize/deserialize for ZkpBin
Diffstat (limited to 'include')
-rw-r--r--include/mcl/she.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mcl/she.h b/include/mcl/she.h
index 1c328bc..6c11050 100644
--- a/include/mcl/she.h
+++ b/include/mcl/she.h
@@ -81,6 +81,7 @@ MCLSHE_DLL_API mclSize shePublicKeySerialize(void *buf, mclSize maxBufSize, cons
MCLSHE_DLL_API mclSize sheCipherTextG1Serialize(void *buf, mclSize maxBufSize, const sheCipherTextG1 *c);
MCLSHE_DLL_API mclSize sheCipherTextG2Serialize(void *buf, mclSize maxBufSize, const sheCipherTextG2 *c);
MCLSHE_DLL_API mclSize sheCipherTextGTSerialize(void *buf, mclSize maxBufSize, const sheCipherTextGT *c);
+MCLSHE_DLL_API mclSize sheZkpBinSerialize(void *buf, mclSize maxBufSize, const sheZkpBin *zkp);
// return read byte size if sucess else 0
MCLSHE_DLL_API mclSize sheSecretKeyDeserialize(sheSecretKey* sec, const void *buf, mclSize bufSize);
@@ -88,6 +89,7 @@ MCLSHE_DLL_API mclSize shePublicKeyDeserialize(shePublicKey* pub, const void *bu
MCLSHE_DLL_API mclSize sheCipherTextG1Deserialize(sheCipherTextG1* c, const void *buf, mclSize bufSize);
MCLSHE_DLL_API mclSize sheCipherTextG2Deserialize(sheCipherTextG2* c, const void *buf, mclSize bufSize);
MCLSHE_DLL_API mclSize sheCipherTextGTDeserialize(sheCipherTextGT* c, const void *buf, mclSize bufSize);
+MCLSHE_DLL_API mclSize sheZkpBinDeserialize(sheZkpBin* zkp, const void *buf, mclSize bufSize);
/*
set secretKey if system has /dev/urandom or CryptGenRandom