aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls/bls.h
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-05-29 04:56:33 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-05-29 04:58:14 +0800
commitd375dc91093527a57cdcb6383d6319a16579ad9e (patch)
tree7717ce9cefd48967fd81087e8c60d2cb53a3b27d /include/bls/bls.h
parent57ec8e3db5359f57dbcd34686d3733fb724c634e (diff)
downloaddexon-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 'include/bls/bls.h')
-rw-r--r--include/bls/bls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h
index ed01090..42e7109 100644
--- a/include/bls/bls.h
+++ b/include/bls/bls.h
@@ -107,11 +107,13 @@ BLS_DLL_API void blsSignatureAdd(blsSignature *sig, const blsSignature *rhs);
// hash buf and set
BLS_DLL_API int blsHashToSecretKey(blsSecretKey *sec, const void *buf, mclSize bufSize);
+#ifndef MCL_DONT_USE_CSPRNG
/*
set secretKey if system has /dev/urandom or CryptGenRandom
return 0 if success else -1
*/
BLS_DLL_API int blsSecretKeySetByCSPRNG(blsSecretKey *sec);
+#endif
BLS_DLL_API void blsGetPublicKey(blsPublicKey *pub, const blsSecretKey *sec);
BLS_DLL_API void blsGetPop(blsSignature *sig, const blsSecretKey *sec);