fix test of fp

dev
MITSUNARI Shigeo 7 years ago
parent 6d6487b748
commit ada38d75f6
  1. 8
      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;
}

Loading…
Cancel
Save