From e44538e17c21b16335caf5ae0eec9704ebeeae8c Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sat, 9 Mar 2019 14:19:03 +0900 Subject: fix comment of blsSecretKeySetLittleEndian --- include/bls/bls.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/bls/bls.h b/include/bls/bls.h index 5e590ae..79aa6a3 100644 --- a/include/bls/bls.h +++ b/include/bls/bls.h @@ -84,8 +84,9 @@ BLS_DLL_API int blsInit(int curve, int compiledTimeVar); BLS_DLL_API void blsIdSetInt(blsId *id, int x); -// return 0 if success -// mask buf with (1 << (bitLen(r) - 1)) - 1 if buf >= r +// sec = buf & (1 << bitLen(r)) - 1 +// if (sec >= r) sec &= (1 << (bitLen(r) - 1)) - 1 +// always return 0 BLS_DLL_API int blsSecretKeySetLittleEndian(blsSecretKey *sec, const void *buf, mclSize bufSize); // return 0 if success (bufSize <= 64) else -1 // set (buf mod r) to sec -- cgit v1.2.3