Challenges
ECDH: calculating the shared secret
Cryptography
Medium
ECDH key exchange
Solves: 6
ECDH: calculating the shared secret
Author: CyberSamSU
Points
35
ECDH (Elliptic Curve Diffie-Hellman) is a method for agreeing on a shared secret key over an open channel. How it works:
- Both parties take the same curve and the same base point
G. - Alice chooses a secret number
nAand sendsQA = nA·Gopenly. - Bob chooses a secret number
nBand sendsQB = nB·Gopenly. - Both of them calculate
S = nA·QB = nB·QA = nAnB·G.
The eavesdropper sees only G, QA, and QB. To derive S from this, one needs to solve the ECDLP — which is practically impossible on large curves.
You know Bob's secret number. Find the x coordinate of the shared secret point (in practice, exactly this number is used in key generation).
p = 13969939049112976651
a = 5092850613958644296
b = 11312807331505269746
G = (11512486443990282652, 13598393654215688787)
Q_A = (13126956389792104174, 4557863138326492897)
n_B = 35075382443175788
Answer: number only — in decimal format, without spaces and without additional characters (for example 1234).
To submit a flag, log in.