News for hackers. Stuff that matters.
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by tptacek on Friday June 05, 2015 @11:55PM (#9669569)
Supports numerous hash (including SHA-512, RIPEMD-320, Tiger) and encryption algorithms (Including AES, Twofish, and Serpent) in several modes (CBC, LRW, and XTS), giving more options than any other disk encryption software.

Why exactly is "more options than any other disk encryption software" a good thing?

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by Johnny_Brahms on Saturday June 06, 2015 @05:39AM (#9670264)
Cascade ciphers is such a ridiculously common request, and educating users only gets you so far. No matter how much I explain that a flaw in the implementation is a lot more likely than a AES breakthrough, they still say stuff like "the security margin of AES is a lot lower than Serpent or Twofish".

After snowden people actually started to request non-american stuff like the old GOST standard... :(

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by tdk on Sunday June 07, 2015 @07:22AM (#9674189)
Disclosure: I am the maintainer of https://github.com/t-d-k/LibreCrypt

You are correct, cascaded cyphers don't increase security except in exceptional circumstances, and can decrease security if wrongly implemented. But LibreCrypt doesn’t actually support cascaded cyphers, so the point is moot.

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by themeekforgotpw on Saturday June 06, 2015 @01:13AM (#9669798)
What mode would you suggest using? XTS isn't exactly a good option but it seems like the best option here.
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by qrmn on Saturday June 06, 2015 @06:01AM (#9670297)
The best option would be to add a MAC or authentication tag correctly, for example with an AE mode like CHACHA20_POLY1305, AES_256_GCM, AES_256_OCB, or one of the new CAESAR candidates, etc.

But then you'd need extra space for the MAC/authentication tag, and disk encryption often isn't placed somewhere in the driver stack where you can get away with, say, a 4080-byte logical sector for a 4096-byte physical sector. Nothing expects that. Performance problems, stuff complains, even crashes, as anyone messing with 2352 byte sectors on CD-ROMs has maybe experienced. (Has anyone tried doing it anyway in more recent years? The last time I tried to implement it was back when ckt was working on PGPdisk, and it didn't go well.)

You could put the authentication tag somewhere else, but you have to be very careful with that, and it also means seeking: you could do that better if you were a filesystem, but as a transparent block device filter, as basically all FDE is, XTS is probably about as good as you're going to get - but remember that it is helpless against malleability or historical snapshots.

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by tptacek on Saturday June 06, 2015 @09:29AM (#9670723)
XTS is the best option here, but what kills me is that all three modes have deficits, and they're not the same deficits. Pick your poison! But don't ask us to tell you which is which!
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by hackinthebochs on Saturday June 06, 2015 @02:18PM (#9671685)
Do you know of a good technical write up regarding the pros and cons of these? Thanks
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by ralish on Saturday June 06, 2015 @01:33AM (#9669837)
What options are superior to XTS? As I understand it XTS does have some weaknesses, but is still the superior option versus LRW & CBC w/ secret IVs. I'm not aware of any other well supported block cipher modes other than those major three?
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by themeekforgotpw on Saturday June 06, 2015 @03:43AM (#9670054)
There is not really AFAIK. I was wondering if TpTacek had a recommendation.

It's terrible. Disk encryption in the cloud is going to be so easy to break though I suppose its better than nothing? whelp

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by Aloha on Saturday June 06, 2015 @12:05AM (#9669608)
The same reason that Linux has 9 major file systems - because we can, and its free software, which means personal choice is paramount.
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by venomsnake on Saturday June 06, 2015 @12:45AM (#9669718)
In encryption one or two properly implemented and audited is better than 10 flawed ...
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by Aloha on Saturday June 06, 2015 @02:24AM (#9669937)
Thats sorta what I'm implying - I'd rather have 2 good filesystems rather then 9 options each with their own differing set of corner and edge cases.
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by venomsnake on Saturday June 06, 2015 @02:40AM (#9669963)
Sorry. Sarcasm gets missed sometimes on the internet.
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by SSLy on Saturday June 06, 2015 @10:49AM (#9670969)
I count three of them: ext4, xfs and btrfs. Did I miss any other general purpose FS that is still significant? (No, JFS and Reiser aren't, sorry.)
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by imaginenore on Saturday June 06, 2015 @03:02PM (#9671830)
So you defined 3 systems as "significant", and are challenging to name more, when you know ahead of time nothing else falls under your definition. So brave!

According to Google Trends, JFS is the third most popular file system on Linux, and Reiser is #1. F2FS is pretty big too, and it's the fastest on Linux 4 / SSD:

http://www.phoronix.com/scan.php?page=article&item=linux-40-...

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by tdk on Sunday June 07, 2015 @07:24AM (#9674194)
Disclosure: I am the maintainer of https://github.com/t-d-k/LibreCrypt

The advantage is that if a flaw is discovered in an algorithm, then it is possible to switch to another without changing tools.

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by mhogomchungu on Saturday June 06, 2015 @03:27AM (#9670030)
People want options and different people want different options. More options means more people will get the options they like best.

In my zuluCrypt project[1],i started with no options because i thought the default options for each supported format was "good enough for everybody" and not long afterwards,the more frequently requested feature was to add more options.

I think more options is good.

[1] http://mhogomchungu.github.io/zuluCrypt/

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by tptacek on Saturday June 06, 2015 @09:28AM (#9670721)
This is why there are still people encrypting with ciphers that use 64-bit blocks: because Schneier wrote one, and people "like" him.
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by Johnny_Brahms on Saturday June 06, 2015 @10:13AM (#9670864)
Blowfish was a good choice at the time, and for some users switching away would cost a lot and give little benefit.

We will say the same about chacha20 in 25 years. It will probably still be secure, but there will be better choices.

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by tptacek on Saturday June 06, 2015 @11:03AM (#9671015)
Blowfish is a block cipher with an 8 byte block. The benefit of switching away from it is not small. Even RC5 would be better choice.
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by Johnny_Brahms on Saturday June 06, 2015 @09:16PM (#9673011)
Did you need to restate that it had an 8byte block? It was clearly blowfish you meant from the beginning.

Anyway, before the AES competition most block ciphers had blocks that size and RC5 is still very much patented.

Blowfish was not a bad choice. I stand by that.

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by ergethaxsd on Saturday June 06, 2015 @02:53PM (#9671781)
Choice, like mutation and sexual reproduction, accelerates evolution. More options means better options over less time.
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by wersfg on Saturday June 06, 2015 @12:28AM (#9669667)
Seems like a loaded question.

It is listed under features, and it doesn't state that it is good or better than other software. Whether it is a good or not is a subjective decision.

In my opinion it is good because you have more choices available.

It appears to be an open source project. Is your question relevant in the first place?

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by ralish on Saturday June 06, 2015 @01:42AM (#9669856)
It's not inherently bad, but choice for choice's sake is generally not a good thing for security software in my view.

Saying you support more features in non-security software might be a great thing but saying you support more ciphers, encryption algorithms, etc... than the competition just means a higher probability you're supporting weak/broken security algorithms and/or that the implementations are not well audited.

That, and the overwhelming majority of users are going to have no idea what the actual difference is between all the options nor are going to take the time to investigate what exactly is the difference between RIPEMD-320 & SHA-512. Nor should they have to for that matter.

The goal here is to implement high quality security software. The more features you support, the more code is in your product, and the harder it is to ensure that your code is in fact delivering the security you're aiming for.

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by tdk on Sunday June 07, 2015 @07:54AM (#9674281)
> Nor should they have to for that matter.

They don't, they can just leave the defaults.

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by vbezhenar on Saturday June 06, 2015 @03:52AM (#9670073)
Because it leads to diversity and flaw in one algorithm won't affect the entire user base. Of course developer must provide only safe and well tested algorithms.
Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by MichaelGG on Saturday June 06, 2015 @05:08AM (#9670209)
A practical flaw in, say, AES is going to be so much more to worry about than just your disk encryption. That's a major breakthrough. Even so, the response to that is to layer ciphers, not to support many more. But that's still rather silly as it's astronomically more likely to find a bug in implementation or design of the FDE than in AES.

As far as implementation bugs, supporting many options means more users will pick the wrong options, and the attack surface becomes larger so that the chance of implementation issues goes up.

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by vbezhenar on Saturday June 06, 2015 @06:33AM (#9670344)
There might be flaw in implementation. Those are much more likely.

> As far as implementation bugs, supporting many options means more users will pick the wrong options, and the attack surface becomes larger so that the chance of implementation issues goes up.

Application must prevent users from picking the wrong options.

Re:LibreCrypt: Transparent on-the-fly disk encryption for Wi... by tomjen3 on Saturday June 06, 2015 @07:20AM (#9670409)
Bugs in the implementation are bad enough. I don't really care how the encryption is not secure, but that it isn't.