<oembed><type>rich</type><version>1.0</version><title>Sinistra delenda est. wrote</title><author_name>Sinistra delenda est. (npub17f…uqqr2)</author_name><author_url>https://yabu.me/npub17f5wtx6gwvcuu6wcx7tz2pyrwhldjarxamdgdhlu3vdpdrjpqwmstuqqr2</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>I&#39;m sure you&#39;ve been hearing about &#34;AI&#34;/SI etc. attacks on existing cryptosystems.  Here&#39;s some limited advice for now:&#xA;The following does not apply to public key cryptography, most especially since it&#39;s inherently a way to communicate between two entities, so you&#39;ll probably be depending on vendors/FOSS to address public key issues.&#xA;Rumors have it that elliptic-curve cryptography (ECC) is &#34;broken&#34; as cryptographers define that, which for us means stuff we do using it today might be stored and practically decrypted tomorrow.  Although &#34;practical&#34; might require nation state resources.&#xA;OK, so per this summary on Hacker New:&#xA;nrvn&#xA;&#34;[...] NSA&#39;s message and call for action is crystal clear and if boiled down to single sentence it looks like that: &#39;Frontier AI/SI companies have responsibly disclosed newly discovered weaknesses in some cryptographic systems currently in use. Proceed and prioritize implementation of CNSA 2.0 as soon as you can&#39;.&#34;&#xA;Which I think gets it right.&#xA;So, what&#39;s &#34;Commercial National Security Algorithm Suite 2.0&#34;&#xA;Well, per the FAQ below, nothing new, except requiring you to use tougher versions of long established and _thoroughly analyzed stuff.  Specifically:&#xA;&#34;Advanced Encryption Standard (AES)&#xA;&#34;Symmetric block cipher for information protection&#xA;&#34;FIPS PUB 197&#xA;&#34;Use 256-bit keys for all classification levels.&#34;&#xA;Instead of the general standard of 128 bit keys.  Intel and AMD have accelerator support for these.  Arm tends to not, which DJB addressed (see below).&#xA;Note, unless your implementation is careful, it is open to some timing attacks.  Doing anything real-ish time over the net opens a host of attacks.&#xA;And:&#xA;&#34;Secure Hash Algorithm (SHA)&#xA;&#34;Algorithm for computing a condensed representation of information [message digest]&#xA;&#34;FIPS PUB 180-4&#xA;Use SHA-384 or SHA-512 for all classification levels.&#34;&#xA;Note this does not give you a full cryptosystem.  With SHA2 you need a MAC as well, although you might get by with just the length of the message that was hashed.  Quoting Brave AI:&#xA;&#34;In cryptography, a message authentication code (MAC) is a short piece of information, also known as a tag, used to verify both the authenticity (origin) and integrity (unaltered state) of a message.&#34;&#xA;Paranoid Jews like DJB who I trust in this domain are suspicious of some of the things that are going on at the cryptosystem level for public key stuff; I don&#39;t know about MACs.&#xA;And we already know the NSA tried to pull a fast one some time ago, this is not the old NSA which as previously mentioned without explanation hardened DES while overtly weakening it.&#xA;https://news.ycombinator.com/item?id=50768988&#xA;https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0__FAQ_v2.2.PDF&#xA;https://en.wikipedia.org/wiki/Daniel_J._Bernstein&#xA;For now, let&#39;s see if Google drops his Salsa20 based stream cipher stuff.  (A stream cipher is a cryptographically secure PRNG, you simply XOR its output with your plain text instead of having to mess with processing it in fixed size blocks.)</html></oembed>