Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ashutosh1206
GitHub Repository: ashutosh1206/crypton
Path: blob/master/Discrete-Logarithm-Problem/Elliptic-Curve-DLP/Algo-Pollard-Rho/Challenges/Multiplayer-2/parameters.sage
1403 views
1
param = { "hacklu":
2
((889774351128949770355298446172353873, 12345, 67890),
3
# Generator of Subgroup of prime order 73 bits, 79182553273022138539034276599687 to be excact
4
(238266381988261346751878607720968495, 591153005086204165523829267245014771),
5
# challenge Q = xP, x random from [0, 79182553273022138539034276599687)
6
(341454032985370081366658659122300896, 775807209463167910095539163959068826)
7
)
8
}
9
10
serverAdress = '0.0.0.0'
11
serverPort = 23426
12
13
(p, a, b), (px, py), (qx, qy) = param["hacklu"]
14
E = EllipticCurve(GF(p), [a, b])
15
P = E((px, py))
16
Q = E((qx, qy))
17
18
def is_distinguished_point(p):
19
return p[0] < 2^(100)
20
21