diff options
Diffstat (limited to 'test/paillier_test.cpp')
-rw-r--r-- | test/paillier_test.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/paillier_test.cpp b/test/paillier_test.cpp index 3791452..31d2b26 100644 --- a/test/paillier_test.cpp +++ b/test/paillier_test.cpp @@ -1,19 +1,17 @@ #include <cybozu/test.hpp> -#include <cybozu/random_generator.hpp> #include <mcl/paillier.hpp> CYBOZU_TEST_AUTO(paillier) { - cybozu::RandomGenerator rg; using namespace mcl::paillier; SecretKey sec; - sec.init(2048, rg); + sec.init(2048); PublicKey pub; sec.getPublicKey(pub); mpz_class m1("12342340928409"), m2("23049820498204"); mpz_class c1, c2, c3; - pub.enc(c1, m1, rg); - pub.enc(c2, m2, rg); + pub.enc(c1, m1); + pub.enc(c2, m2); std::cout << std::hex << "c1=" << c1 << "\nc2=" << c2 << std::endl; pub.add(c3, c1, c2); mpz_class d1, d2, d3; |