aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-09-28 08:12:41 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-09-28 08:12:41 +0800
commitc77e12bae0141cc803b20fe724f080b473566ff6 (patch)
treec8009332be1691e16d8b558bd94f1f2955baad62
parent09fd955da7e0217bbd408abcc0bf21566c0032b7 (diff)
downloaddexon-bls-c77e12bae0141cc803b20fe724f080b473566ff6.tar
dexon-bls-c77e12bae0141cc803b20fe724f080b473566ff6.tar.gz
dexon-bls-c77e12bae0141cc803b20fe724f080b473566ff6.tar.bz2
dexon-bls-c77e12bae0141cc803b20fe724f080b473566ff6.tar.lz
dexon-bls-c77e12bae0141cc803b20fe724f080b473566ff6.tar.xz
dexon-bls-c77e12bae0141cc803b20fe724f080b473566ff6.tar.zst
dexon-bls-c77e12bae0141cc803b20fe724f080b473566ff6.zip
[doc] fix comment of deserialize
-rw-r--r--include/bls/bls.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h
index 6b4caa4..5fe2d81 100644
--- a/include/bls/bls.h
+++ b/include/bls/bls.h
@@ -78,13 +78,13 @@ BLS_DLL_API size_t blsIdGetDecStr(char *buf, size_t maxBufSize, const blsId *id)
BLS_DLL_API size_t blsIdGetHexStr(char *buf, size_t maxBufSize, const blsId *id);
-// return written byte size if success else 0
+// return written byte size if success else 0
BLS_DLL_API size_t blsIdSerialize(void *buf, size_t maxBufSize, const blsId *id);
BLS_DLL_API size_t blsSecretKeySerialize(void *buf, size_t maxBufSize, const blsSecretKey *sec);
BLS_DLL_API size_t blsPublicKeySerialize(void *buf, size_t maxBufSize, const blsPublicKey *pub);
BLS_DLL_API size_t blsSignatureSerialize(void *buf, size_t maxBufSize, const blsSignature *sig);
-// return 1 if same else 0
+// return 0 if success else -1
BLS_DLL_API int blsIdDeserialize(blsId *id, const void *buf, size_t bufSize);
BLS_DLL_API int blsSecretKeyDeserialize(blsSecretKey *sec, const void *buf, size_t bufSize);
BLS_DLL_API int blsPublicKeyDeserialize(blsPublicKey *pub, const void *buf, size_t bufSize);
@@ -101,7 +101,7 @@ BLS_DLL_API void blsSecretKeyAdd(blsSecretKey *sec, const blsSecretKey *rhs);
BLS_DLL_API void blsPublicKeyAdd(blsPublicKey *pub, const blsPublicKey *rhs);
BLS_DLL_API void blsSignatureAdd(blsSignature *sig, const blsSignature *rhs);
-// hash buf and set
+// hash buf and set
BLS_DLL_API int blsHashToSecretKey(blsSecretKey *sec, const void *buf, size_t bufSize);
/*
set secretKey if system has /dev/urandom or CryptGenRandom