# How long does it take to generate signature for Elliptic Curve keys using the P-256 curve?

If you have a plain text document, known public key to verify generated signature strings against. EDIT: You do NOT know the private key, this is all you have.

Using a modern computing power with 4 cores, 12 threads, (or GPUs, if that is faster) - how long would it take to come up with a signature that the given public key would authenticate?

• Do you have the private key to sign with? Commented Oct 5, 2021 at 20:31
• @poncho NO, I just edited to clarify this question. Commented Oct 6, 2021 at 3:25

If the private key is available: see this answer.

If it's not (which appear to be the hypothesis): forget about it using the computing power available. The best known attack (Pollard's rho) would require in the order of $$2^{129}$$ point additions. It the machine could perform these at a rate of $$2^{36}$$ per second (which is wildly optimistic), the division gives 300 million million million years (obtained as $$2^{129-36}/86400/365$$ years).

We should not even hope for a strike of luck: when we do a fraction $$1/k$$ of the required work, probability of success is in the order $$1/(k^2)$$.

Thus the best avenues of success are to somehow obtain the private key, or access to a device that can sign. Methods abound: side channel attacks, exploitation of flaws of the random number generator used for signing, exploitation of other software flaws, penetration of the IT infrastructure that has the private key, social engineering, bribery, theft, coercion.

• 2^93/86400/365 is not 3 million, it is 314 billion billion (using US billions) i.e. 314x10^18. I think you may have confused 10^20 with 2^20. Commented Oct 5, 2021 at 23:12
• Thank you! that answer is pretty good, so I guess best hope is exploitation of flaws of the random number generator used for signing - any references to read up on those, in relation to the mentioned EC p-256 keys? Is that enough information even, at this point? Commented Oct 6, 2021 at 3:33
• @dave_thompson_085: you read my mind!
– fgrieu
Commented Oct 6, 2021 at 5:12