Home
Writeups Misc About
Micro Transmissions

Micro Transmissions

Simple challenge, there are two key point to solve this. First, the order of the curve is smooth, and also the private keys are relatively small (264). My approach is just simply relying on Sage magic to perform the heavy duty work.

Sage Implementation:

The intended solution (but weirdly takes about the same time as the above approach), employs the fact that the private keys are so small, we can however enjoy the fact that we don't need to recover the discrete log in every subgroup to reconstruct it. We combine just enough subgroups to have the CRT modulus larger than the known upper bound, apply CRT, and in no time, we have our solution.

Indeed, denote the order as n=pq, and the secret multiplication factor be d. Suppose we have p>d, hence d=xmodp is equivalent to d=xmodn. This is trivial but I just wanna write it out. The following is a slight modification to Robin_Jadoul script on Cryptohack, as his script does not work with a different G.