From d375dc91093527a57cdcb6383d6319a16579ad9e Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 29 May 2018 05:56:33 +0900 Subject: CSPRNG is not used in wasm --- include/bls/bls.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/bls/bls.h') 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); -- cgit v1.2.3