Return-Path: <400thecat@gmx.ch> Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Sat, 23 Nov 2019 06:43:58 +0100 (CET) Received: from [192.168.0.20] ([31.10.151.165]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M7b6b-1iTBXU2jpV-0081U9 for ; Sat, 23 Nov 2019 06:43:57 +0100 From: Fourhundred Thecat <400thecat@gmx.ch> Message-ID: <62fc7ef6-e289-b268-17d5-6ac1df2f3904@gmx.ch> Date: Sat, 23 Nov 2019 06:43:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: [dm-crypt] detached LUKS header size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hello, I am using full-disk encryption with detached LUKS header. The LUKS header file itself is stored on an initrd image which I boot from USB, and then I decrypt the cryptsetup partition on my disk and chroot into it. The initrd system that I boot is very minimal, around 8MB in size. The LUKS image, being 2MB, is making the initrd image needlessly bigger. And the new LUKS2 format seems to use even larger header (10MB ?) From what I understand, the keyslots themselves only use up 4KB of space, and the rest is used for "antiforensic stripes". This is probably a good idea when LUKS header is stored on disk together with the cryptsetup partition. But when using detached header, which is never stored on disk, this makes less sense Thus my question: is it possible, somehow, to reduce the size of the LUKS header to absolute minimum (4KB ?), when I don't need the antiforensic stripes ? thank you,