Remix.run Logo
▲ rocqua 6 hours ago

It’s weird if cryptographers would call only one instance of ECC broken, but still have the attack be infeasible.

It’s usually either an attack that generalises. Or a specific implementation fault.

▲mort96 3 hours ago | parent | next [-]

Don't attacks often reduce the number of effective bits of security? The idea I've see is that ECC might have been reduced by like 200 bits, leaving 256-bit ECC at a completely broken 56 bits of effective security while 384-bit ECC would be a still mostly reasonable 184 bits of effective security

This would be consistent with how they're all rushing to get off 256-bit ECC but seemingly not as concerned about 384-bit.

But damn this is some terrible communication. If 256-bit ECC is broken, say it. If 384-bit ECC is still good for now, say it. Bad actors with resources are already reading all this speculation to mean "256-bit ECC is broken", so they're doing the world no benefit by vagueposting.

▲xinayder 21 minutes ago | parent | next [-]

What about Curve/Ed/X25519? Is it also affected by this?

That's what I want to know.

▲rhdunn 3 minutes ago | parent | next [-]

As far as I can tell [1], [2] they are different. It's been known that P-256 isn't as safe for a while now -- at least since 2019 based on those links, and Chrome is moving to actively blocking P-256 certificates.

Chrome's recommendation is to use X25519 as part of a hybrid approach (X25519MLKEM768), so it is reasonable to assume that X25519 has not been broken yet/with the recent advances.

[1] https://github.com/pomerium/pomerium/issues/233

[2] https://safecurves.cr.yp.to/

▲mort96 6 minutes ago | parent | prev [-]

I would assume that yes, all 256-bit ECC is broken; but it's striking that Google only mentions P-256, not Curve25519...

It's so tiring. I really don't understand why they don't just tell us what's broken. Why all these vague hints which are enough for an attacker to know what's broken but not enough for a defender to know what's safe

▲ffaccount2 an hour ago | parent | prev | next [-]

As mentioned elsewhere, "broken" in context of cryptography means "better attack then anticipated". If we wanted 256 bit ECC to have 128 bits of security (we also usually know attack at that complexity from the beginning) and someone found a way to break it in say 2^123 operations, it's broken.

▲mort96 an hour ago | parent [-]

I think it's completely irresponsible if anyone, in communication with the public (which all of this has been, public blog posts and public advisories and public tweets), calls something "broken" when it has gone down to "still perfectly safe for the foreseeable but a couple of bits less than expected".

▲BoppreH 3 hours ago | parent | prev [-]

Nitpick about the example numbers you used: the "security level" of ECC algorithms is half the curve size. So a new effective size of 184 bits would not be considered secure either.

▲mort96 3 hours ago | parent [-]

Thanks, that's a good correction.

So I guess more plausible numbers would be, effective security was reduced by 64 bits, so P-256 goes from a decent 128 bits down to an unacceptable 64 bits of effective security while P-384 goes from 192 to a still acceptable 128 bits of effective security.

▲goalieca 7 minutes ago | parent | prev | next [-]

112-bit was chosen as the minimum equivalent strength to be considered safe by NIST. Anything below is broken. With quantum you need to double that.

NSA has better margins annd only allowed P384 in its suite for instance.

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

The whole apocalyptic wording on twitter on PQC does really not fit the fact that secp256k1 or P-384 are not included. Also it would mean that Montgomery curves would survive for now leaving e.g. wireguard key auth safe for now. I guess ECDH or ECDSA and RSA deprecations were anyhow on the roadmap, so they spun it towards PQC just to be on the safe side before realizing the infrastructure havoc this would cause.

▲dhx 4 hours ago | parent | next [-]

secp256k1 has an IANA recommendation of NO for use in TLS for ephemeral keys.[1]

secp256k1 is disallowed as a curve which certificate authorities (those accepted by browsers) can issue a certificate for.[2]

Thus Google and Mozilla perhaps don't care about secp256k1 and have no need to mention it, but very much do care about secp256r1.

[1] https://www.iana.org/assignments/tls-parameters#tls-paramete...

[2] https://github.com/cabforum/servercert/blob/main/docs/BR.md#...

▲Dagonfly 3 hours ago | parent [-]

Yeah, there is literally no major browser or CA supporting secp256k1. Neither in TLS, nor certs, nor in JS.

OTOH if Google comes out and yells secp256k1 is utterly toast, you basically fire bomb the cryptocurrency market.

▲rwmj 2 hours ago | parent [-]

Not all bad news then.

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

Wild speculation: Could it be that this is a situation like with the Riemann conjecture proof and its initial 17M lines of code?

Meaning some internal frontier model found an attack on that specific key, but the exploit is so convoluted and huge that researchers don't understand yet how it works and therefore can't yet generalize to other keys.

▲ZiiS 3 hours ago | parent [-]

They always err on the side of caution; without a mathmatical theory explaining it can't generalise the assumption would be that it dose.

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

AFAIK 256 ecc is like aes tuned to the limit of security, so further improvement of cryptanalysis is dangerous, while P-384 and PQC survive merely due to larger key size and thus bigger security margin.

▲b112 3 hours ago | parent [-]

I had a vision of everything just being weakened, so in January everyone just uses super massive key sizes. Connecting to a website takes 2 minutes for negotiation.

▲cyphar an hour ago | parent [-]

Ironically, "just make the keys bigger lol" was a (joke) NIST PQC round one candidate called pqRSA[1]. To get the necessary security level for pqRSA, you need 1TiB keys (though maybe you could get it down to 1GiB if you assume a certain amount of qubit latency). Sadly(?) it turns out that an equivalent pqECC with small(er) keys would not work.

[1]: https://cr.yp.to/papers/pqrsa-20170419.pdf

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

Maybe the NOBUS in secp256r1 was discovered by AI? That would explain a lot, after all.

▲franticgecko3 5 hours ago | parent [-]

I hope it's this just so the Satoshi story is surrounded in even more mystique

▲bflesch 4 hours ago | parent [-]

Care to elaborate? My brain is not online yet

▲franticgecko3 4 hours ago | parent [-]

The curve (secp256k1) chosen for Bitcoin was one that NSA/NIST didn't pick. It's the accepted opinion that Satoshi believed those might be backdoored.

▲mike_hearn 4 hours ago | parent | next [-]

It's not accepted opinion, and I'm the guy who asked him why he chose it so I should know! As far as I'm aware he never gave anyone else an explanation and the explanation he gave me wasn't any good. He said he "just picked one".

▲franticgecko3 2 hours ago | parent | next [-]

You may have spoken to him, so in your mind it's refuted.

I'm sure there are more people that believe the backdoor story than there are Satoshi insiders.

Did this conversation happen on a public forum?

▲mike_hearn 2 hours ago | parent [-]

No, it happened over email. I exchanged many emails with Satoshi in the early days and eventually published them on my website. The specific place he discusses the choice of secp256k1 is at the bottom of this thread:

https://plan99.net/~mike/satoshi-emails/thread3.html

> I must admit, this project was 2 years of development before release, and I could only spend so much time on each of the many issues. I found guidance on the recommended size for SHA and RSA, but nothing on ECDSA which was relatively new. I took the recommended key size for RSA and converted to equivalent key size for ECDSA, but then increased it so the whole app could be said to be 256-bit security. I didn't find anything to recommend a curve type so I just... picked one. Hopefully there is enough key size to make up for any deficiency.

Rather than Satoshi picking it because he thought it was stronger, I was asking about it because Hal Finney thought it might be weaker...

▲bflesch 4 hours ago | parent | prev [-]

[flagged]

▲therein 3 hours ago | parent [-]

You replied to him within 6 minutes.

▲bflesch 4 hours ago | parent | prev [-]

Thanks for sharing, that's interesting.