From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] How to compress LUKS2 header?
Date: Fri, 27 Dec 2019 17:27:45 +0100 [thread overview]
Message-ID: <20191227162745.GA10947@tansi.org> (raw)
In-Reply-To: <xcsvcvspcwrfkq9qvp4d9nqh@localhost>
On Fri, Dec 27, 2019 at 17:20:11 CET, Michael Kjörling wrote:
> On 27 Dec 2019 10:56 -0500, from gebser@mousecar.com (ken):
> > Compressing a file is one step in the encryption of that file. So if
> > your LUKS2 header file is encrypted, it's also already compressed.
> > Using ZIP on it would yield no further compression.
>
> No, encryption does not imply compression. Rather, trying to compress
> ciphertext is a largely pointless exercise if the encryption is any
> good in the first place; therefore, _if_ you're going to compress the
> data you're encrypting (keeping in mind that doing so is not always a
> good idea; see compression oracle attacks), then you need to compress
> first, then encrypt, not the other way around.
Well, actually compressing encrypted data is very easy. It just
has one mandatory condition that has to be met: You have to be able
to decrypt. Moden ciphers make sure you can only do that when
you have the key.
> I'm pretty sure the LUKS header backup isn't compressed.
It is not. Also, the anti-forensic stripes are not encyption.
They are basically an all-or-nothing transformation and that
is different form encryption.
Regards,
Arno
> --
> Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se
> “Remember when, on the Internet, nobody cared that you were a dog?”
>
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> https://www.saout.de/mailman/listinfo/dm-crypt
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name
GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato
If it's in the news, don't worry about it. The very definition of
"news" is "something that hardly ever happens." -- Bruce Schneier
next prev parent reply other threads:[~2019-12-27 16:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-23 14:41 [dm-crypt] How to compress LUKS2 header? Julio Faracco
2019-12-27 15:56 ` ken
2019-12-27 16:20 ` Michael Kjörling
2019-12-27 16:27 ` Arno Wagner [this message]
2019-12-27 20:46 ` Julio Cesar Faracco - jfaracco@br.ibm.com
2019-12-27 21:19 ` Milan Broz
2019-12-28 0:20 ` Arno Wagner
-- strict thread matches above, loose matches on Subject: below --
2019-12-26 20:12 Julio Cesar Faracco - jfaracco@br.ibm.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191227162745.GA10947@tansi.org \
--to=arno@wagner.name \
--cc=dm-crypt@saout.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox