Return-Path: Received: from ste-pvt-msa2.bahnhof.se (ste-pvt-msa2.bahnhof.se [213.80.101.71]) (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 ; Tue, 31 Mar 2020 09:11:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id 251583FA98 for ; Tue, 31 Mar 2020 09:06:03 +0200 (CEST) Received: from ste-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (ste-ftg-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2sqHMR3YN9Ee for ; Tue, 31 Mar 2020 09:06:01 +0200 (CEST) Received: from localhost (unknown [155.4.14.33]) (Authenticated sender: mc592273) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id BE0D03FA1B for ; Tue, 31 Mar 2020 09:06:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTPS id 27AAE2E02D2 for ; Tue, 31 Mar 2020 09:06:01 +0200 (CEST) Date: Tue, 31 Mar 2020 07:06:00 +0000 From: Michael =?utf-8?B?S2rDtnJsaW5n?= Message-ID: <17450c9e-dc0b-4990-aee6-811bbf6b937d@localhost> References: <566872408.1293730.1585598590645.ref@mail.yahoo.com> <566872408.1293730.1585598590645@mail.yahoo.com> <20200330210022.GA31903@tansi.org> <1807406216.1448262.1585603129820@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1807406216.1448262.1585603129820@mail.yahoo.com> Subject: Re: [dm-crypt] bits vs bytes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 30 Mar 2020 21:18 +0000, from moreejt@yahoo.com (JT Morée): > I'm trying to see how much space my 'key' is using up within the > allocated space of the LUKS header and for import/export.  That's > real meaning ;-) If that is your goal, then you really should be asking about that. In general, ask about what you want to know (while stating your ultimate goal), not what you _think_ will tell you the answer to what you _actually_ want to know. Asking about something other than what you actually want to know is liable to get you the wrong answer (or at least a useless one), and likely to waste peoples' time. That helps noone. Also, for LUKS, it's not as easy as just taking the cryptographic key length, because the cryptographic key isn't stored directly, even encrypted. Rather, the key is stretched on-disk (via the "AF" or anti-forensic stripes), in part to make it easier to overwrite enough key material to make recovery via an exhaustive search guided by the remaining on-disk data impractical. That forces an attacker to either attack the passphrase (via the iterated, salted hash) or the randomly-selected bulk encryption key directly. If you choose a good passphrase and/or set a high enough iteration count, both can be made equally impractical. -- Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se “Remember when, on the Internet, nobody cared that you were a dog?”