From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ste-pvt-msa1.bahnhof.se (ste-pvt-msa1.bahnhof.se [213.80.101.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Fri, 27 Dec 2019 17:20:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTP id 6A3A23F6BB for ; Fri, 27 Dec 2019 17:20:14 +0100 (CET) Received: from ste-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (ste-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nLflHpuLr8BA for ; Fri, 27 Dec 2019 17:20:13 +0100 (CET) Received: from localhost (unknown [85.24.253.35]) (Authenticated sender: mc616801) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id 4C8C13F671 for ; Fri, 27 Dec 2019 17:20:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTPS id C25B32E0327 for ; Fri, 27 Dec 2019 17:20:12 +0100 (CET) Date: Fri, 27 Dec 2019 16:20:11 +0000 From: Michael =?utf-8?B?S2rDtnJsaW5n?= Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [dm-crypt] How to compress LUKS2 header? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de 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. I'm pretty sure the LUKS header backup isn't compressed. -- Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se “Remember when, on the Internet, nobody cared that you were a dog?”