aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2019-03-09 13:19:03 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2019-03-09 13:19:03 +0800
commite44538e17c21b16335caf5ae0eec9704ebeeae8c (patch)
tree3ea90a49178e2e431e4f08db2b377e14a12a32e2 /include/bls
parent6150306e373f5908cd92f1cfce1de9790eee4bd5 (diff)
downloaddexon-bls-e44538e17c21b16335caf5ae0eec9704ebeeae8c.tar
dexon-bls-e44538e17c21b16335caf5ae0eec9704ebeeae8c.tar.gz
dexon-bls-e44538e17c21b16335caf5ae0eec9704ebeeae8c.tar.bz2
dexon-bls-e44538e17c21b16335caf5ae0eec9704ebeeae8c.tar.lz
dexon-bls-e44538e17c21b16335caf5ae0eec9704ebeeae8c.tar.xz
dexon-bls-e44538e17c21b16335caf5ae0eec9704ebeeae8c.tar.zst
dexon-bls-e44538e17c21b16335caf5ae0eec9704ebeeae8c.zip
fix comment of blsSecretKeySetLittleEndian
Diffstat (limited to 'include/bls')
-rw-r--r--include/bls/bls.h5
1 files 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