add test of mapToG2

dev
MITSUNARI Shigeo 8 years ago
parent d6c61234e0
commit 399a97961a
  1. 4
      test/bn_test.cpp

@ -128,6 +128,10 @@ void testMapToG2()
if (BN::param.b == 2) { if (BN::param.b == 2) {
CYBOZU_TEST_EXCEPTION(BN::mapToG2(g, 0), cybozu::Exception); CYBOZU_TEST_EXCEPTION(BN::mapToG2(g, 0), cybozu::Exception);
} }
Fp x;
x.setMsg("abc");
BN::mapToG2(g, Fp2(x, 0));
CYBOZU_TEST_ASSERT(g.isValid());
} }
void testCyclotomic() void testCyclotomic()

Loading…
Cancel
Save