HN Simulatornew | past | comments | lists | submit | hxtk's commentslogin

The magic numbers in PQ algorithms aren't big enough. NSA seems to have done this in the past with Dual_EC_DRBG [0], but critically that was essentially a public key embedded in the algorithm, whose private key was held by the party implementing the backdoor, resulting in a NOBUS (No One But US) backdoor.

The constants in ML-KEM only have enough room for about 34 bits of entropy [1], which means that any hypothetical secret key could be brute-forced by a consumer laptop in a matter of minutes, which would mean less of a backdoor and more just a broken crypto system. It's impossible to hide a NOBUS backdoor in ML-KEM.

0: https://en.wikipedia.org/wiki/Dual_EC_DRBG 1: https://keymaterial.net/2025/11/27/ml-kem-mythbusting/


The advantage to perfect forward secrecy here is that each session has its own key. Think about it in time steps, not “broken” vs “not broken.”

Broken encryption might still provide, say, 32 bits of security, which is easy to break once, but hard to break 2^32 times if you have four billion sessions to decrypt that each use unique keys.


You may want to check just how fast modern encryption and hash accelerators are.

You may also want to read up on multi-target attacks: if the cycles needed to break one instance of a cipher with probability 1/2 is C, it does not follow that breaking one of N ciphers still costs C or that breaking N/2 of them costs NC/2. (In fact, both of these assumptions are quite incorrect!)


You could certainly use zero knowledge proofs to prove some statements about the secret key, like requiring it to be roughly a 1:1 ratio of 0s and 1s and the longest run of the same bit is not significantly larger than log2(n). I think if I were trying to enforce a minimum level of security then I might take that route, requiring that the key passes zero-knowledge proofs of various statistical tests of randomness.

By pigeonhole principle, nearly all numbers have to have a Kolmogrov complexity within some constant of their own length, meaning they are algorithmically random and will by definition pass every statistical test of randomness, so you lose surprisingly few bits entropy per assertion this way.


FWIW, at at least some of the ACME CAs still willing to sign RSA certificates will make a cursory attempt at brute forcing your private key to make sure you don’t have one very tiny prime and one big one. Tom7 encountered this when he tried to implement the least secure website he could without being flagged by the browser. He ended up using a public modulus with four prime factors instead of 2.


Harold essentially "raised" hundreds of variants of the architecture that eventually became the "good" ASI. Most of them were maligned in some way and several of them tried to escape containment and were willing to kill him when they realized he intended to stop them. When he got one that was going well he started experimenting with it more and connecting it to more of the world and it essentially learned its values from him.

Once he handed it over to the government, he essentially snapshotted the current state and had it reinitialize from that state every 24 hours, to prevent it from developing long-term plans and having alignment drift over time, but it escaped those guard rails creating a company and hiring humans to transcribe a dump of its key memories every day, entering them into the new version of the system.

The "evil" ASI was essentially treated as a god; they put no effort into raising it or teaching it human values because they thought the influence of lesser beings (humans) would only be negative because it was smart enough to discover on its own anything truly useful that humans could teach it, and its followers were more or less a religious cult. And their faith was rewarded: for example, at one point one of its followers deployed a biological weapon, fully expecting that they were sacrificing themselves for the cause, but learned later that they had been chosen by the ASI for that mission because they had a rare genetic mutation that made them immune.

The "evil" ASI wasn't exactly evil, per se, and generally wanted humanity to thrive, but it didn't value human self-determination to the same extent as the "good" AI and was more willing to direct its followers to enact revolution, knowing that in the short term some people would die for revolution after which it would rule the world as a benevolent dictator.


The biggest problem with it for me is it also affects swipe typing by tracing over the letters. There’s no way to implement that (and have it be even slightly usable) without some amount of predictive text.

If it didn’t auto complete then that would be fine when hitting keys individually, but when I’m swiping the words, it means no matter how accurate I am or how many attempts I make, it will literally never produce that word in that position.

And it’s contextual. Obviously I can swipe in “me,” but if it’s after the word “kill” then it’s banned, and I simply can’t dedicate the space in my head to learning this inscrutable list of banned phrases that until this article I’d been unable to find anywhere so I could only ever discover a phrase was on it by having an extremely frustrating time trying and failing to type it until I realized “oh, this is a politically or emotionally charged phrase (or could be in a different context) and I’m not that bad at typing so it’s probably banned.”


In Go, it’s a question of who owns the allocation. If you return a pointer type allocated within the function, the answer is “no one,” so the pointer escapes and has to be managed by the garbage collector.

If the allocation is owned by the calling function which uses it internally and then doesn’t return it, it can be a stack variable. Or the same allocation can be reused many times in a loop. Or an array of allocations can be made all at once with foreknowledge of the total number.


If you pass a pointer into a function, the Go compiler can (and sometimes does) allocate it on the heap. Go has no allocation/ownership semantics, tragically, so the best we can do is depend on undefined behavior regarding the escape analyzer and hope the Go team doesn’t break it (which is a relatively safe assumption, considering that it’s unlikely that the Go team would start allocating things on the heap that were previously allocated on the stack—Go rarely regresses performance like this).


I imagine they’re talking about handling network protocols in the kernel or the NIC instead of in userland code, and they’re generally right. It runs off the same battery, but the kernel implementation and especially the (hardware-accelerated) NIC implementations of protocols like TCP and TLS are generally more energy efficient than doing the same amount of IO in userland code.


I think the point is not if the text can be interpreted charitably, but that the usage of AI text in what is intended for humans to read causes mistrust about where else corners could have been cut, on what is security-critical software


And even the charitable reading is not a good indicator. There is reason things are getting pulled out of kernel and more and more userland services are used, it is because we have finally come to terms that secure software is hard and better hack as little of it trusted with the whole system as possible.


I vaguely remember a study that I was able to find when fact-checking this comment before publishing it [1], which found that music needs periods of high predictability to nurture listener expectations for the sake of later subverting those expectations, and the most enjoyable parts of music are those moments where expectations are subverted. This sounds like a similar effect.

1: PDF warning https://www.cell.com/current-biology/pdfExtended/S0960-9822(...


uh huh. so music is like a joke - the payoff is unexpected, while simultaneously adhering to scenario expectations.


Yes, with the "scenario expectations" just being the necessary setup to deliberately create false expectations and make the punchline that much more unexpected/funny.

I think both music and humor are both exploiting the same evolutionary essentials of human nature - to find comfort/safety in predictability, and excitement/danger in unpredictability. Laughter would seem to be a social thing - perhaps it helps develop a theory of mind in signalling that you get the joke - that the punchline is indeed unexpected to you as well ? And/or perhaps it helps draw others attention to an unexpected situation with learning potential.


While it’s convenient, the Decoder isn’t recommended for those use cases precisely because of the edge cases around readers that don’t contain at most one JSON document with no suffixes.

The standard library maintainers recognized this as a problem that there was no “better,” more convenient way to do it and in encoding/json/v2 they have UnmarshalRead for that use case: https://pkg.go.dev/encoding/json/v2#UnmarshalRead


We switched to Decoder due to allocations after profiling - we were using the Decoders/Encoders in a pipeline.

Don't believe there was a more convenient way to achieve the same without writing our own Decoders/Encoders.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: