1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

Fix unit test for point_jacobian_add

This commit is contained in:
Jochen Hoenicke 2015-08-05 22:26:50 +02:00
parent a9b98a3671
commit a1408fc5a0

View File

@ -292,7 +292,7 @@ def test_jacobian_add(curve, r):
q = POINT()
jp2 = JACOBIAN()
lib.curve_to_jacobian(to_POINT(p2), jp2, prime)
lib.point_jacobian_add(to_POINT(p1), jp2, prime)
lib.point_jacobian_add(to_POINT(p1), jp2, curve.ptr)
lib.jacobian_to_curve(jp2, q, prime)
q = from_POINT(q)
p_ = p1 + p2