Challenges
Point doubling (tangent rule)
Cryptography
Easy
Group operations
Solves: 8
Point doubling (tangent rule)
Author: CyberSamSU
Points
15
If the two points being added are the same (P + P), a straight line cannot be drawn through them — a tangent is taken instead. The formula is almost the same, only lambda is calculated differently:
lambda = (3*x1^2 + a) * (2*y1)^(-1) mod p
x3 = lambda^2 - 2*x1 mod p
y3 = lambda*(x1 - x3) - y1 mod p
Doubling is the most frequently used operation in ECC: by sequentially obtaining 2P, 4P, 8P, ..., any k·P can be calculated very fast (you will see this in the next challenge).
Curve parameters:
p = 9739
a = 497
b = 1768
P = (5907, 9281)
Find the point 4P. That is, first 2P = P + P, then 4P = 2P + 2P.
Answer: the coordinates of the point in the format x,y — first x, then a comma, then y (e.g. 1234,5678).
To submit a flag, log in.