diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2019-03-08 20:59:21 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2019-03-08 20:59:21 +0800 |
commit | b861a41edebe285168cbd2d06f41621d5ae36255 (patch) | |
tree | 93a0700ed19ba8436be26fd617ce18a7f631cc6f /include/bls | |
parent | 5fcee19422f96902a5fdf9f29db427dd6fe9f16b (diff) | |
download | dexon-bls-b861a41edebe285168cbd2d06f41621d5ae36255.tar dexon-bls-b861a41edebe285168cbd2d06f41621d5ae36255.tar.gz dexon-bls-b861a41edebe285168cbd2d06f41621d5ae36255.tar.bz2 dexon-bls-b861a41edebe285168cbd2d06f41621d5ae36255.tar.lz dexon-bls-b861a41edebe285168cbd2d06f41621d5ae36255.tar.xz dexon-bls-b861a41edebe285168cbd2d06f41621d5ae36255.tar.zst dexon-bls-b861a41edebe285168cbd2d06f41621d5ae36255.zip |
add blsSecretKeySetLittleEndianMod
Diffstat (limited to 'include/bls')
-rw-r--r-- | include/bls/bls.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h index 39cbf40..5e590ae 100644 --- a/include/bls/bls.h +++ b/include/bls/bls.h @@ -87,6 +87,9 @@ BLS_DLL_API void blsIdSetInt(blsId *id, int x); // return 0 if success // mask buf with (1 << (bitLen(r) - 1)) - 1 if buf >= r 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 +BLS_DLL_API int blsSecretKeySetLittleEndianMod(blsSecretKey *sec, const void *buf, mclSize bufSize); BLS_DLL_API void blsGetPublicKey(blsPublicKey *pub, const blsSecretKey *sec); |