From c77e12bae0141cc803b20fe724f080b473566ff6 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 28 Sep 2017 09:12:41 +0900 Subject: [doc] fix comment of deserialize --- include/bls/bls.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/bls') 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 -- cgit v1.2.3