Remix.run Logo
▲ seethishat 6 hours ago

Curious why not RSA 4096 instead? RSA is the oldest and maybe the safest, most well studied option IMO.

▲noinsight 6 hours ago | parent | next [-]

Its performance is terrible. That’s the reason for the shift to ECC in the first place (partly).

▲globular-toast 2 hours ago | parent | next [-]

Does that make any difference for SSH? My understanding is asymmetric crypto is only used once per connection to exchange a symmetric key which is used to encrypt the actual data. PGP is similar. Nobody uses RSA of any key size to encrypt any actual data.

▲cowlevel 14 minutes ago | parent [-]

Yes, you're basically DoSing yourself every time a scanner connects.

▲globular-toast 4 minutes ago | parent [-]

I ran SSH on the internet for years and it was never a problem even for my weak hardware. I did use fail2ban, though.

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

If you think that RSA is OK then RSA2048 is good enough. It is significantly more performant then RSA4096. It is probably faster than typical curve based stuff for encryption and signature verification.

▲cowlevel 3 hours ago | parent [-]

Well no, the same announcement that said move to 384-bit ECC also said move to 3072-bit RSA. If you don't believe the announcement then continue using 256-bit ECC.

▲upofadown 2 hours ago | parent [-]

That there is any possibility of breaking RSA2048 counts as another unsubstantiated rumour at this point. A reasonable rationale has not been provided.

▲rrr_oh_man 6 hours ago | parent | prev [-]

What does terrible mean, practically?

▲bob1029 6 hours ago | parent | next [-]

Large RSA keys are only impacting at the negotiation phase. This mostly matters for hyperscalars and anyone else doing high volumes of crypto operations at scale.

▲otabdeveloper4 4 hours ago | parent [-]

Anybody doing more than double digit https connections per second is affected.

And by "affected" I mean your CPU will die when you switch from 2048 bits to 4096.

▲rsync 42 minutes ago | parent [-]

We're not talking about HTTPS - we are talking about OpenSSH and it's very rare to find non-hyperscalers dealing with ssh traffic volumes where these performance characteristics matter.

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

RSA doesn't scale past 2048 bit keys. Performance drops by 85% for a 112->140 increase in bits of security with 4096 bit keys (3072 is 128).

Of course the security bits of e.g. ED25519 are up in the air now, but it (used to) offers 128 bits of security at vastly better performance.

See for yourself on your own hardware:

$ openssl speed rsa2048 rsa4096 ed25519

▲dist-epoch 5 hours ago | parent | next [-]

Computers got vastly better in the last 15 years. Does this still matter?

▲noinsight an hour ago | parent [-]

Depends on your security and performance requirements of course.

Is 2000 handshake operations per CPU core per second good enough (RSA 2048)? Is 300 (RSA 4096)? Do you need 30000 (ED25519)?

Google will have a different opinion than the operator of a cat picture website. OTOH, if the cat picture website is hosted on a Raspberry Pi, its operator might greatly care as well - those numbers are a lot smaller.

▲rrr_oh_man 4 hours ago | parent | prev | next [-]

What does that mean in practical terms, though? For a standard website, web app?

▲cowlevel 3 hours ago | parent [-]

Means every connection initialization takes up half a second of CPU time on your web server and in the browser. It's that bad. May be tolerable for SSH (with port knocking or something to reduce DoS), not really for HTTPS.

▲otabdeveloper4 4 hours ago | parent | prev | next [-]

> are up in the air now

No they aren't.

You're literally doing a Chicken Little dance based on literal Twitter rumors.

Get a grip on yourselves.

▲jamwil 2 hours ago | parent [-]

None of this has anything to do with twitter rumours. The information provided through the official statements explicitly calls ECC into question.

▲ 4 hours ago | parent | prev [-]
[deleted]
▲13415 6 hours ago | parent | prev [-]

I'm using RSA 8192 and have no performance problems in practice. I suppose it depends on what you're doing, though, I'm only connecting to remote servers manually and with simple deployment scripts.

▲binaryturtle 3 hours ago | parent [-]

Using RSA 8192 since many years too. On >12 years old hardware: 3 GHz Intel Core i7. I never noticed any performance issues. I often fire up multiple sessions (up 12) at once for semi-automatic stuff.

Recently experimented with other types of keys, that now turn out to be problematic… and it didn't made any difference really from the performance perspective.

▲rsync an hour ago | parent | prev [-]

"Curious why not RSA 4096 instead? RSA is the oldest and maybe the safest, most well studied option IMO."

This should be our first question and, as a follow-up, why did OpenSSH steer default algorithms away from large (3072/4096) RSA in the first place ?

Who among us is handling thousands of SSH connections per minute ? Who among us is handling multi-gigabit streams of SSH traffic ? If so, you know what you're doing and can make good selections based on your unique and interesting use-cases.

Meanwhile, how many personal/home/small/sensitive users were shunted away from RSA over the last decade for no good reason ?

▲cowlevel 12 minutes ago | parent [-]

Because it's really slow, that's why. That's basically the reason we all moved off RSA to ECC in the first place.

You don't have to be handling thousands of SSH connections per minute, you just have to have regular internet port scanners knocking on your SSH port and your server will be wasting substantial CPU proving its identity to them if it's got an RSA4096 host key.

The gigabits don't actually matter, since it's a one-time cost per connection establishment.