diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2015-12-28 15:08:40 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2015-12-28 15:08:40 +0800 |
commit | 80da55f65809cdc2f10a4ebf4b0b9504e7eb2eef (patch) | |
tree | 7a03dadde219c263e808063c1f191806f89f6a2f | |
parent | 3f0e1e86f32d63f651d57092178d14b31bb2167d (diff) | |
download | tangerine-mcl-80da55f65809cdc2f10a4ebf4b0b9504e7eb2eef.tar.gz tangerine-mcl-80da55f65809cdc2f10a4ebf4b0b9504e7eb2eef.tar.zst tangerine-mcl-80da55f65809cdc2f10a4ebf4b0b9504e7eb2eef.zip |
add p160_1 for test
-rw-r--r-- | include/mcl/ecparam.hpp | 1 | ||||
-rw-r--r-- | sample/bench.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/mcl/ecparam.hpp b/include/mcl/ecparam.hpp index a5206e9..8c17025 100644 --- a/include/mcl/ecparam.hpp +++ b/include/mcl/ecparam.hpp @@ -139,6 +139,7 @@ const struct mcl::EcParam NIST_P521 = { static inline const mcl::EcParam* getEcParam(const std::string& name) { static const mcl::EcParam *tbl[] = { + &ecparam::p160_1, &ecparam::secp160k1, &ecparam::secp192k1, &ecparam::secp224k1, diff --git a/sample/bench.cpp b/sample/bench.cpp index 7eb088d..8eb63a3 100644 --- a/sample/bench.cpp +++ b/sample/bench.cpp @@ -103,6 +103,7 @@ void benchEcSub(const mcl::EcParam& para, mcl::fp::Mode mode) void benchEc(size_t bitSize, int mode) { const struct mcl::EcParam tbl[] = { + mcl::ecparam::p160_1, mcl::ecparam::secp160k1, mcl::ecparam::secp192k1, mcl::ecparam::NIST_P192, |