From ada38d75f6800a0950d15f710dd9a31dbd2fbaf0 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 24 Sep 2017 10:32:17 +0900 Subject: [PATCH] fix test of fp --- test/fp_test.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/fp_test.cpp b/test/fp_test.cpp index 8af9af0..32e6f4a 100644 --- a/test/fp_test.cpp +++ b/test/fp_test.cpp @@ -721,14 +721,8 @@ void setHashOfTest() #else size_t bitSize = Fp::getBitSize(); cybozu::crypto::Hash::Name name; - if (bitSize <= 160) { - name = cybozu::crypto::Hash::N_SHA1; - } else if (bitSize <= 224) { - name = cybozu::crypto::Hash::N_SHA224; - } else if (bitSize <= 256) { + if (bitSize <= 256) { name = cybozu::crypto::Hash::N_SHA256; - } else if (bitSize <= 384) { - name = cybozu::crypto::Hash::N_SHA384; } else { name = cybozu::crypto::Hash::N_SHA512; }