upvote
4 is the product of 2 and 2, so could it still be valid?
reply
ECC keys have nothing to do with primes.

I'm most familiar with Curve25519, where private keys are simply 256-bit random numbers, with five of those bits ignored/overridden, resulting in effectively 251 random bits in a key. P-256 keys are similar.

To get technical: the base point on the curve is then "multiplied" by the private key, resulting in a new point on the curve which is your public key. See curves.xargs.org for more details.

reply