From ff6764bb7e4f3643729bb12a1935f11d92590753 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 10 Dec 2018 18:05:24 +0900 Subject: fix compiler error for MCL_USE_OPENSSL=0 --- test/bls_test.hpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'test') 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 #include #include -#ifdef MCL_DONT_USE_OPENSSL #include -#else -#include -#endif template 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); -- cgit v1.2.3