def test_reps():
x = (0, 1)
x2 = (0, 2)
y = (2, 0)
y2 = (4, 0)
xy = (2, 1)
yx = (2, p1271 - 1)
z = (3, 4)
z2 = (6, 8)
ta = (5, 0)
tb = (1, 6)
t = (5, 30)
td2 = GFp2.mul((2,0), GFp2.mul(d, t))
r1 = (x, y, z, ta, tb)
r2 = (xy, yx, z2, td2)
r3 = (xy, yx, z, t)
r4 = (x2, y2, z2)
test.test("R1toR2", R1toR2(r1), r2)
test.test("R1toR3", R1toR3(r1), r3)
test.test("R2toR4", R2toR4(r2), r4)
评论列表
文章目录