diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-05-29 04:56:33 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-05-29 04:58:14 +0800 |
commit | d375dc91093527a57cdcb6383d6319a16579ad9e (patch) | |
tree | 7717ce9cefd48967fd81087e8c60d2cb53a3b27d /src | |
parent | 57ec8e3db5359f57dbcd34686d3733fb724c634e (diff) | |
download | dexon-bls-d375dc91093527a57cdcb6383d6319a16579ad9e.tar dexon-bls-d375dc91093527a57cdcb6383d6319a16579ad9e.tar.gz dexon-bls-d375dc91093527a57cdcb6383d6319a16579ad9e.tar.bz2 dexon-bls-d375dc91093527a57cdcb6383d6319a16579ad9e.tar.lz dexon-bls-d375dc91093527a57cdcb6383d6319a16579ad9e.tar.xz dexon-bls-d375dc91093527a57cdcb6383d6319a16579ad9e.tar.zst dexon-bls-d375dc91093527a57cdcb6383d6319a16579ad9e.zip |
CSPRNG is not used in wasm
Diffstat (limited to 'src')
-rw-r--r-- | src/bls_c.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bls_c.cpp b/src/bls_c.cpp index 27de518..274babb 100644 --- a/src/bls_c.cpp +++ b/src/bls_c.cpp @@ -288,10 +288,12 @@ int blsHashToSecretKey(blsSecretKey *sec, const void *buf, mclSize bufSize) { return mclBnFr_setHashOf(&sec->v, buf, bufSize); } +#ifndef MCL_DONT_USE_CSPRNG int blsSecretKeySetByCSPRNG(blsSecretKey *sec) { return mclBnFr_setByCSPRNG(&sec->v); } +#endif int blsPublicKeySetHexStr(blsPublicKey *pub, const char *buf, mclSize bufSize) { return mclBnG2_setStr(&pub->v, buf, bufSize, 16); |