News for hackers. Stuff that matters.
Re:Minerva: Practically exploitable side-channel leakage in ... by UI_at_80x24 on Thursday October 03, 2019 @02:28PM (#21150287)
What is the latest "most secure" crypto I should be using?
Re:Minerva: Practically exploitable side-channel leakage in ... by loeg on Thursday October 03, 2019 @02:51PM (#21150620)
In new designs or like, SSH keys?

For new designs: basically just use libsodium.

For SSH: Ed25519 or 2048 bit RSA.

We can get into the weeds about which specific cryptographic primitives are fine in isolation, but that misses the point — the ones that were fine 5-10 years ago are still more or less fine — the problems for developers and end-users generally stem from accidental misuse of cryptographic primitives in designing systems incorporating cryptographic primitives as a component. Sure, don't use DES, DSA, or MD5/SHA1; strong primitives are only necessary, not sufficient.

Re:Minerva: Practically exploitable side-channel leakage in ... by regecks on Thursday October 03, 2019 @06:52PM (#21153103)
>For new designs: basically just use libsodium.

Check out libhydrogen from the same author. The API contains less footguns (like nonces).

Re:Minerva: Practically exploitable side-channel leakage in ... by loeg on Thursday October 03, 2019 @07:58PM (#21153552)
The appeal of libsodium is that it is (or was) mostly an easy to consume NaCl. Correct me if I'm wrong, but I don't think libhydrogen is related to NaCl or the NaCl authors.
Re:Minerva: Practically exploitable side-channel leakage in ... by exabrial on Thursday October 03, 2019 @02:48PM (#21150580)
Finally, read this: "If You’re Typing the Letters A-E-S Into Your Code You’re Doing It Wrong"

https://www.nccgroup.trust/us/about-us/newsroom-and-events/b...

Re:Minerva: Practically exploitable side-channel leakage in ... by pilsetnieks on Thursday October 03, 2019 @03:32PM (#21151085)
Now that's a deep cut even for a Dan Harmon fan.
Re:Minerva: Practically exploitable side-channel leakage in ... by aidenn0 on Thursday October 03, 2019 @06:26PM (#21152926)
For anyone else wondering what the Dan Harmon reference was:

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

Re:Minerva: Practically exploitable side-channel leakage in ... by bob1029 on Thursday October 03, 2019 @05:36PM (#21152508)
What's wrong with using AES in CBC mode?
Re:Minerva: Practically exploitable side-channel leakage in ... by exabrial on Friday October 04, 2019 @10:51AM (#21158269)
See my original comment about attack surface. Given the correct set of circumstances, transmitting the IV in the clear with CBC could possibly open you up to chosen ciphertext/plaintext attacks. And you better be doing encrypt-then-prepend-IV-then-MAC with CBC. Just a lot of gotchas that may or may not be relevant, depending on your environment.
Re:Minerva: Practically exploitable side-channel leakage in ... by exabrial on Thursday October 03, 2019 @02:37PM (#21150423)
At minimum, for asymmetric, at the time of the writing:

* ECDSA with secp-256 or ed25519 curves

* RSA >= 2048 bits. Performance takes a steep dive at 4096bits unfortunately

What people don't understand is that your implementation needs to be selected against your attack surface. If your attack surface includes hardening against side channels, your implementation selection needs to take that into account.

Re:Minerva: Practically exploitable side-channel leakage in ... by regecks on Thursday October 03, 2019 @06:51PM (#21153098)
I don't think curve25519 is used in any ECDSA implementations. ed25519 is part of EdDSA.
Re:Minerva: Practically exploitable side-channel leakage in ... by exabrial on Friday October 04, 2019 @10:51AM (#21158276)
You're correct. ed25519 is a separate scheme.
Re:Minerva: Practically exploitable side-channel leakage in ... by zokier on Thursday October 03, 2019 @04:27PM (#21151789)
Start from cryptographic right answers:

https://latacora.singles/2018/04/03/cryptographic-right-answ...

On a glance none of those recommendations have become invalid in the passing 18 months or so.