DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: Panagiotis Malakoudis <malakudi@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] Corrupted luks partition, help needed
Date: Thu, 03 Jun 2010 20:12:58 +0200	[thread overview]
Message-ID: <4C07F0AA.9040508@redhat.com> (raw)
In-Reply-To: <AANLkTilVquJmNLcp3DyScl_gNGrdBZjedFWLmFJuXQnZ@mail.gmail.com>

On 06/03/2010 06:16 PM, Panagiotis Malakoudis wrote:
> Hello Milan and thank you for your answer.
> 
> I thought that the information shown in luksDump is enough to use those
> keys for decoding. I thought the extra 128KB per keyslot are for
> checksum verification, so if they are modified then checksum fails and
> key is not selected. However, since I know this is the correct key, is
> there any way to force the usage of it even if checksum fails?

The key, you are entering to cryptsetup, is just "passphrase" to unlock keyslot.
Simplified - after decryption and iterated hashing of the keyslot
area you get the master (volume) key which is used in disk encryption.
(that volume key is generated during luksFormat, it is not derived
from passphrase in LUKS)

Data contained in luksDump is just master key fingerprint + keyslot
attributes, used to verify the correct key fingerprint.

Btw format is now flawed - see antiforensic split function. It is designed
that even if hw internally relocates part of keyslot area (so you cannot wipe it),
it is not possible reconstruct master key with some old passphrase knowledge
and these relocated sectors content. 

And also see luksHeaderBackup and restore command.

Milan

  reply	other threads:[~2010-06-03 18:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-03 15:32 [dm-crypt] Corrupted luks partition, help needed Panagiotis Malakoudis
2010-06-03 15:51 ` Milan Broz
2010-06-03 16:16   ` Panagiotis Malakoudis
2010-06-03 18:12     ` Milan Broz [this message]
2010-06-03 18:05   ` Panagiotis Malakoudis
2010-06-03 20:14     ` Arno Wagner
2010-06-03 20:48       ` Luca Berra
2010-06-03 20:56         ` Christoph Anton Mitterer
2010-06-03 22:07         ` Arno Wagner
2010-06-04  6:05           ` Panagiotis Malakoudis
2010-06-04  8:54             ` Roscoe
2010-06-06 19:57           ` [dm-crypt] cryptsetup administration tool Ali Reza Sajedi

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=4C07F0AA.9040508@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-crypt@saout.de \
    --cc=malakudi@gmail.com \
    /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