upvote
My grad level cryptography professor had a paranoid stance of not liking RSA, and I remember he recommended that if we had to use it, we use rsa keys that were 8192 or higher.

It’s not supported in very many places, but because of him I have used 4096-bit RSAs keys everywhere that I could.

He may have been paranoid, but in cryptography it’s often not wrong to be paranoid. His advice was a decade ago and still mostly holds up today, even if it’s hopefully overkill today as well. But it’s left me feeling more secure everywhere that I’ve used higher-than-recommended key lengths and crypto-standards.

reply
> I remember he recommended that if we had to use it, we use rsa keys that were 8192 or higher.

I remember back in 2005, if I recall correctly, without understanding what I'm doing I set opensshd server key to be 8192 in FreeBSD installer and rebooted. I think I waited for server to boot for 5 hours while its trying to harvest entropy and generate said key with that entropy. My reasoning why "why not, its just slightly large number and its more secure this way"

reply
RSA comes from the academic world though (MIT). An equivalent public key scheme using prime numbers was developed in the UK by GCHQ and shared with the NSA several years earlier, but they do not share a lineage. The NSA actually tried to restrict publishing of research on RSA.
reply
It would have been paranoia if the spooks were not out there trying to get you. At this point, it is public knowledge that not only are they are out there, their objective is to get everyone.

The most secure operating systems, the strongest cryptography, the biggest keys... It's the bare minimum. No expense should be spared.

reply
We know now that the NSA strengthened DES against mathematical attacks, but weakened it against brute force attacks.
reply
Intentionally or as a tradeoff? And source?
reply
Intentionally; the two changes are orthogonal. The NSA requested changes to the S-boxes, increasing it's resistance to the not publicly known at the time technique of differential cryptanalysis. They also requested that the key size be drastically reduced.

> NSA worked closely with IBM to strengthen the algorithm against all except brute-force attacks and to strengthen substitution tables, called S-boxes. Conversely, NSA tried to convince IBM to reduce the length of the key from 64 to 48 bits. Ultimately they compromised on a 56-bit key.

https://en.wikipedia.org/wiki/Data_Encryption_Standard

reply
Something nobody has talked about in an age was that back when motherboards had math coprocessors, NSA was running custom chips in the coprocessor slot to do cryptanalysis. And that they get get early access to top shelf hardware. No idea what they do now for extra compute.
reply
Back in my credit card manufacturing days, I always wondered why it was 56 bits and not 48 or 64 seemed like such an odd number to pick.
reply
NSA themselves used 120-bit keys + 8 parity = 128 bit [1] and recently 160-bit key + 160 parity [2].

[1] https://en.wikipedia.org/wiki/SAVILLE

[2] https://en.wikipedia.org/wiki/BATON

reply
"parity" was the excuse.

People were used to parity checking given the common use of modems and other close-to-analog devices, so seeing a 2^n number reduced by 7/8 or extended by 9/8 wasn't as unnatural as it seems today.

reply
Back then 2^n was not a given for word length. And IBM did binary coded decimal quite a lot. But unless IBM was using 68 bit words I don’t think that’s the explanation.
reply
In the DES spec they key is 64-bits with the last bit in each byte being a parity bit used to check the key.
reply
Yeah, the excuse about them being parity bits always made me side eye it as well. If you feel like the key could get corrupted somehow you would just encrypt a couple test vectors which would give you way more confidence.
reply
Until late 2019, keys were distributed on paper tape. There's also systems that are difficult to test, for example, a survival GPS-radio packed in an ejection seat or life raft. And and IFF key: people's lives are directly dependent on it.

Made a comment on this yesterday, military/government crypto has very different constraints from Internet crypto.

reply
DES has Parity bits and those were total bullshit just to weaken each round.
reply
Similarly, the initial SHA-1 proposal was published, then withdrawn, then republished with a minor unexplained change. An attack against the initial version was found (in public) about ten years later.
reply
Adding some more detail for those interested, and correcting the 10 years to 5 years:

FIPS 180 was published 1993-05-11[1] and introduced "Secure Hash Standard", an algorithm now commonly known as "SHA-0".

FIPS 180-1 was published 1994-11-07[2] with the sole change of "A circular left shift operation has been added to the specifications in section 7, line b, page 9 of FIPS 180 and its equivalent in section 8, line c, page 10 of FIPS 180."[3] This revised algorithm is known as "SHA-1".

SHA-0 was publicly broken (2^80 down to 2^61) in [4] which was published at CRYPTO '98 (1998-08-23/1998-08-27). As noted in [4], the change in FIPS 180-1 ("SHA-1") to add a circular left shift operation avoids the new attack of [4].

[1] https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/NIST.FIPS.180....

[2] https://www.federalregister.gov/documents/1994/07/11/94-1666...

[3] https://www.govinfo.gov/content/pkg/FR-1994-07-11/html/94-16...

[4] Chabaud, F., Joux, A. (1998). Differential collisions in SHA-0. In: Krawczyk, H. (eds) Advances in Cryptology — CRYPTO '98. CRYPTO 1998. Lecture Notes in Computer Science, vol 1462. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0055720

reply
Differential analysis was a state secret during the DES era. I don’t recall if that was still true when SHA came out.
reply
Blakley?
reply
Not the OP but I did take Blakley’s course about 25 years ago, and yes there were lots of good stories like this.
reply
No, unfortunately I don't recall his name now. I just took one course with him, this Crypto course.
reply
Whatever it was that got us believing Americans were ahead of anything it ain’t working anymore.

I have a hard time believing they can maintain their current tech let alone be ahead. It’s just not credible anymore if it ever was. It’s dying and we all know it except they don’t, yet.

reply
Except that being compared to American technology is de-rigur, so it is kind of wild to claim that Americans aren't ahead. First to scale the Internet, first to make landing rockets, absolutely ahead in AI capability, and the list goes on. Not only that, but American companies have a track record of rapid integration of new technology into operations, and of course the US military benefits from that. So... seems pretty credible to me.
reply
Internet was invented in the 70’s, VTVL rockets were done in the 90’s (even Blue Origin beat SpaceX by a decade), Even the concept of software ANNs dates back to the 70s.

Commercialisation of technology is a different kettle of fish, but how long can you keep commercialising stuff if you don’t do basic science any more?

reply
At least until 2017 when the transformer architecture was invented, I guess.
reply
> Internet was invented in the 70’s, VTVL rockets were done in the 90’s (even Blue Origin beat SpaceX by a decade), Even the concept of software ANNs dates back to the 70s.

Yea who cares about the scientists and engineers who actually did all the material science, experimentation, figured out how all the stuff actually works together and where the gaps were. Launching satellites? Shit some Greek guy threw a rock all the way to the moon once!

> Commercialisation of technology is a different kettle of fish, but how long can you keep commercialising stuff if you don’t do basic science any more?

Idk. But thankfully that doesn’t apply to us!

reply
Leaks from a decade ago now showed that the emperor has no clothes

It just has sovereign immunity to do things that would put the rest of us in prison

the coding styles and research wasn’t particularly impressive

reply
>It just has sovereign immunity to do things that would put the rest of us in prison

This is what Americans pay them to do, no? I'm sure they do some bad stuff, but mostly I think they do what they're paid to do.

reply
How exactly do you suppose a clandestine organization with immense power and no effective oversight to stay uncorrupted?

Whatever you pay them, they can make more when not sticking to the law.

Historical evidence repeatedly points to severely illegal acts being perpetrated by US intelligence agencies. And those acts being covered up in all kinds of ways again and again. The fact, this isn't being reported on constantly by investigative journalism, should worry you deeply.

reply
Yeah, you know. Who are the Americans? The bureaucracy is being intentional and they are the decision makers on what the government actually pays for, so in that sense they are doing what they're paid to do because they decide what they pay for. They represent the Americans, so the Americans are getting what the pay for.

But there is actually a stream of evidence that the Americans - in the sense of the democratic foundation of the US - have lost control of their own military. The voters have actually been relatively clear that they object to all the disastrous overseas adventures. The intelligence community are part of that rogue element. In that sense they aren't doing what the population wants.

reply
I'd wager there is a substantial distance between NSA's organizational units for the script kiddie farms and their cryptanalysis departments.
reply
I used to know someone through a friend of a friend that was very humble. He claimed to be ex-army when I met him. He was 22-23, maybe 24?. He's also the best programmer I've ever met. Over the period of time I was in friend circles with him, I learned of places where he'd trained and been stationed. I pieced it together and accused him of working for the NSA. He admitted it. Prior to joining he had tested very well, but only had a year prior of programming experience as a teenager.

I really can't stress enough how fast he was at problem solving. He also had a lot of experience with a wide variety of the most common programming languages, such as C++, Java, Python, Golang and JavaScript. Despite claiming to not be fluent in any of them, I watched him catch very minute syntax mistakes in Python at lightspeed. For some reason he had some kind of love for Zim. He was also conversationally fluent in Farsi.

Most importantly, he claimed to not have been that important. His work was classified, but it was mostly fairly mundane, according to him. He simply didn't like discussing it because people's imaginations go wild about this stuff. He really wasn't trying to fool me. He was socially well adjusted but honestly a bit shy. The thing that stood out to me most about it was just his skill level in general. He easily had big tech senior-level skills, and they had taught him all of this plus Farsi effectively on bootcamp time tables.

I fully expect them to have a literal small army of individuals like this on staff. They're just people, but they're not clowns.

reply
18-24 is not a short amount of time, anyone who is willing (and has the time and financial resources) can study physics in that time span, was he fluent in physics? if you studied physics in western europe around 2005-2010, you'll get one general programming course (ours was Java) by a computer science purist (not a physicist), from then on any simulators or analysis we had to author as students in C/C++, python, MATLAB/Octave, ... we were expected to figure out ourselves, and many of us already knew programming languages from the boring times of high school.

In physics after the introduction to a single business programming language (java in our case), physicists consider computer programming lingua franca, the default expectation is that you can take any algorithm and implement it in the language of your choice (and they would force a few languages depending on the teacher). Not knowing basic complexity theory, or how to automate a computation, or how to check for or ensure convergent behavior, etc are assumed as basic as the alphabet, programming in a physics context was a necessary skill for the upcoming generation, and without all the computer science pedantic language purism flamewars, it was the pleasant programming world, actual diversity of algorithms, not being a data plumber for bigcorp, but you better not help some non-programmer staff physicists out too much, or they might promise to hire you (and do it), but you'd slowly be reduced to and kept busy as their personal programming assistant, and you'd loose touch with actual physics... heard a couple of those horror stories.

Yes physics was the fun computer science course, where you also got to learn about the physics that governs the real world around us. Just like some people chose the easy "economy" or "art" escape hatch in highschool, where you learn, but not that much, you could similarily learn dedicated "computer science" without much else. Studying physics, you'd learn the core and essence of programming (for about half of us who didn't learn programming autodidactically), for the rest of us it was just a recap, or just another language, fine. Studying physics is much more autodidactic compared to other studies. You'll go nowhere if you only read the supplied textbooks.

Some of my university friends took on cheap after-hour language classes to learn Russian or whatever.

You make a 6 year span for the feats described sound crammed, but that doesn't match what I have witnessed in purely civilian context, in myself or others.

reply
There's such a wide gamut of people and if you can attract and find and hire and retain only the best, for whatever reasons (ideological or monetary), then yes, what is described is not impossible at all in any way.

    we were expected to figure out ourselves
Like, this is something our CS department also did with a bunch of courses that required low(er) level programming languages. Java was the general programming course, like you mentioned as well. To learn about operating systems and how they work, nobody taught you C or assembler. You just learned the concepts and then "here, go implement this in Minix, it counts for half your grade". Weeded out quite a few people and that was a good thing if you ask me!

I have the fortune of working with people that are smart like that kid described there. They are far and few in between especially at what we can pay or be ideological about vs. the NSA. They're just good at anything and everything you throw at them. And with AI their skills get amplified up the wazoo.

reply
You're really not selling what you think you are, I could do all of that by the time I was 15. The US is bigger than you think it is.
reply
If you follow future tech the government builds for the military, you'll know the government is always 20 years ahead of what the public has now. Whatever tech we have access to today that seemed outlandish 20 years ago, is in front of you now. If we're on the edge of publicly breaking encryption, then the government is already 20 years ahead of that.
reply
this is obviously not true for AI
reply
Just giving you some context and you'll hopefully connect the dots. Why are all the Chinese AI companies run only by young folk? :)
reply
With all due respect, why?

It's relatively easy for the US government to classify technology and assets. Public disclosure of technology is as much about posturing as it is about technological readiness. Some years back, the Pentagon announced a project to build a "digital twin" of the entire world, and I'm quite confident they've done that. What makes you think that a massive supercomputer cluster which outperforms state-of-the-art AI systems isn't one of the most highly classified systems out there?

Now, I have no knowledge of such a system, but consider that aerospace--the most widely discussed domain with regards to government classification of technology--is simply one of many domains. Why WOULDN'T they classify such a technology and wait for the public to catch up?

reply
Well, the current demand by AI labs has strained global supply chains and raised prices for consumers. My understanding is that a large fraction of lab GPU demand is for training. Where would the chips to train such a secret AI come from 20 years ago?
reply
That's because they are doing it for the general public, but if you have supercomputers dedicated to a single task, that's not so wild speculation anymore.
reply
Training compute doesn’t decrease if you have fewer users
reply
The supply chains for creating a secret datacenter capable of training opus 5 before around 2020 did not exist. The US government would have to have secretly been one of the largest customers of multiple large foreign companies, not to mention be sitting on computing capabilities that would make their use of national labs and supercomputers be basically entirely a front.

Not to mention the people: who are all the secret ML PhDs that are working for the government building our their secret AI systems?

reply
> who are all the secret ML PhDs that are working for the government

If that was the case the gov would never do any classified research... Of course they have scores of PhDs working right now in classified topics, and these people are not hiding, they work in the major universities and research labs.

reply
> Of course they have scores of PhDs working right now in classified topics, and these people are not hiding, they work in the major universities and research labs.

Which is, by and large, not where any of the notable advancements in LLM research have come from. They've come from industrial labs. Of the Attention is all you need authors, 5 never attended university in the US, and of the others, I think only one would have been able to work on classified topics, and he started working at Google in like 2004 (and didn't do much, if any, academic work in the ML space before then)

In the areas where classified research is common, its an open secret when folks are working on classified stuff and how. There's no one anywhere in the influential space in ML research who has the shape of "oh I was working on this but cooler" for the NSA, and we don't see anyone in the public-facing ML space disappearing into obscurity and working for the government, never to return (which would be the other signal that there is technically cool stuff happening).

None of it makes any sense.

reply
> In the areas where classified research is common, its an open secret when folks are working on classified stuff and how.

Anyone who has worked with applied mathematicians knows that they can't shut their mouth about supposedly classified work that they've participated in. This is absolutely correct.

reply
Maybe not at the same scale, but I always found it unrealistic that the big supercomputers publicly purchased by the government are actually used for weather modeling and nuclear simulations.

I think breaking crypto is one interesting application. But a better one would be to try to predict based on metadata what messages individuals might be trying to send. So no real need to open the envelope.

reply
But maybe in the age of LLMs it's not 20 years anymore.
reply
Which movie did you see this in?
reply
Maybe US government and maybe in some areas only. But when I look at my government which is struggling with basic administration and ... gasp... digitization of their services! Then I am pretty certain they are not ahead with anything.
reply
Equally outlandish is imagining the military having the tech we have now twenty years ago.
reply
> His gut feeling was that the NSA is about ~20 years ahead of the rest of the world in Cryptography.

I guess he's drank the American exceptionalism coolaid then?

I don't have a hard time believing they're ahead of the game compared to what's openly published, or that there's plenty of secrecy and manipulation behind the scenes, possibly coordinated between universities, companies, and governments.

I do, however, have a massive problem with believing that the NSA were ever ~20 years ahead of all other world governments. Or even one year. You're telling me the Russians, Chinese, all of Europe, all universities in the world, collectively, couldn't muster the mathematical process of one US government agency? That's pure conspiracy wrapped up in America worship.

reply
I didn’t read that so much us versus other state actors. I read it more as NSA versus everything we know about. But since you asked…

The Russians? No. For the main reason that they are so bad with corruption that they’re probably unable to fund such advanced research without someone embezzling all the money.

China? Definitely the biggest chance of all the ones you cited.

Europe? I highly doubt it. In general, the EU intelligence communities are too used to having access to anything they might need by virtue of their American allies to be motivated to spend enough money to be ahead of the NSA.

reply