diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-12-10 17:05:24 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-12-10 17:05:24 +0800 |
commit | ff6764bb7e4f3643729bb12a1935f11d92590753 (patch) | |
tree | acb9995d33a0cb86f203b455a2ede44eacc68465 /test | |
parent | e17ebfd57bcc6b97d7012811527fbad93952f655 (diff) | |
download | dexon-bls-ff6764bb7e4f3643729bb12a1935f11d92590753.tar dexon-bls-ff6764bb7e4f3643729bb12a1935f11d92590753.tar.gz dexon-bls-ff6764bb7e4f3643729bb12a1935f11d92590753.tar.bz2 dexon-bls-ff6764bb7e4f3643729bb12a1935f11d92590753.tar.lz dexon-bls-ff6764bb7e4f3643729bb12a1935f11d92590753.tar.xz dexon-bls-ff6764bb7e4f3643729bb12a1935f11d92590753.tar.zst dexon-bls-ff6764bb7e4f3643729bb12a1935f11d92590753.zip |
fix compiler error for MCL_USE_OPENSSL=0
Diffstat (limited to 'test')
-rw-r--r-- | test/bls_test.hpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/bls_test.hpp b/test/bls_test.hpp index 7c819b2..58ab475 100644 --- a/test/bls_test.hpp +++ b/test/bls_test.hpp @@ -4,11 +4,7 @@ #include <iostream> #include <sstream> #include <cybozu/benchmark.hpp> -#ifdef MCL_DONT_USE_OPENSSL #include <cybozu/sha2.hpp> -#else -#include <cybozu/crypto.hpp> -#endif template<class T> void streamTest(const T& t) @@ -449,11 +445,7 @@ void verifyAggregateTest() char msg[128]; CYBOZU_SNPRINTF(msg, sizeof(msg), "abc-%d", (int)i); const size_t msgSize = strlen(msg); -#ifdef MCL_DONT_USE_OPENSSL - cybozu::Sha256(msg, msgSize).get(h[i].data); -#else - cybozu::crypto::Hash::digest(h[i].data, cybozu::crypto::Hash::N_SHA256, msg, msgSize); -#endif + cybozu::Sha256().digest(h[i].data, sizeofHash, msg, msgSize); secs[i].init(); secs[i].getPublicKey(pubs[i]); secs[i].signHash(sigs[i], h[i].data, sizeofHash); |