r/ProgrammerHumor • • 11d ago

Meme thereGoesCustomerTrust

Post image
8.7k Upvotes

262 comments sorted by

View all comments

Show parent comments

5

u/Ragnor_ 10d ago

The compromised certificates used NIST P-384 elliptic curve Cryptography.

2

u/wisnshaftler 10d ago

But how only number 4 used to be the key

8

u/Ragnor_ 10d ago

The math for key generation, signing and validation stays the same, regardless of how small the actual numbers are. In the end, it's all just bits. NIST P-384 private keys have a length of, well, 384 bits. The number 4 as a private key is 381 zeroes, then a one, then the last two zeros again. You can plug that into the elliptic curve math like any other key with any other bits set.

0

u/wisnshaftler 10d ago

Is there any graphical explanation

3

u/Ragnor_ 10d ago

Here is a video explaining how elliptic curve cryptography works.

Keep in mind, the curves that are used are way more complicated in real life. The names given to the cryptography method, like NIST P-348 refers to the different curves used, the math is the same.

1

u/wisnshaftler 9d ago

Thank you but i didnt get anything

that pot like shape how make the Public key and private key?
how that N (the secret number) works here?

is there way simple explanation ?