Remix.run Logo
▲ Polizeiposaune 6 hours ago

384-bit ECDSA, not 256-bit ECDSA.

Not sure why they aren't going all the way to 521-bit out of extreme caution, though.

(Oddly, the ECDSA sizes are 256, 384, and 521 -- the big one is 521 not 512).

▲adrian_b 5 hours ago | parent | next [-]

The big one is 521 because 2^521 - 1 is a prime number (a Mersenne prime), which accelerates the computation of the remainder operation in comparison with computing a remainder modulo some random prime.

▲adgjlsfhk1 5 hours ago | parent | prev | next [-]

There is 511 which has about as much/little use as 521

▲formerly_proven 6 hours ago | parent | prev | next [-]

Or Curve448

▲leafingensemble 5 hours ago | parent | prev | next [-]

p-384 has 128 bit security in the n^(1/3) regime.

▲nmadden 5 hours ago | parent | prev [-]

P-521 is slooooow

▲maximilianburke 5 hours ago | parent [-]

Yeah but it’s only used for key exchange, right?

▲adrian_b 5 hours ago | parent [-]

I have switched from ED25519 to P-521, both for host and client keys and for the key exchange algorithm, on some ancient devices where updating OpenSSH would be difficult.

There is no noticeable slow-down, I still connect instantaneously, but that is because I am the only one who connects through SSH to those devices. If there would be thousands of SSH connection establishments per second, I suppose that there might be a measurable difference in CPU load between using ED25519, P-384 and P-521. For a Github server or for a Huggingface server, the size of the curve should matter, because those have a great number of clients connecting through SSH, but not for a server with a single administrator, who uses SSH.