All of lore.kernel.org
 help / color / mirror / Atom feed
From: "U.Mutlu" <for-gmane@mutluit.com>
To: dm-crypt@saout.de
Subject: [dm-crypt] inner workings of block mode encryption
Date: Sun, 08 Feb 2015 15:06:49 +0100	[thread overview]
Message-ID: <mb7qhp$3u4$1@ger.gmane.org> (raw)

Hi,
I'm interessted in the inner workings of encrypting block devices
like the encrypted volumes created with the cryptsetup tool.

Let's say a file of size 200K is stored on an encrypted ext2 filesystem.
How is the enrcyption key applied to it?

I guess the password is used only for accessing/mounting the volume,
and the key is only a starting value (ie. a "seed") for the underlying cipher.

Since in these cases usually a blockwise operating cipher is used,
that means that the file will be encrypted of course blockwise,
for example in blocks of 32 bytes.

Now the question: are the blocks of that file all encrypted using the
same one key? Or does a kind of "streaming" or HMAC get used for the
subsequent blocks of the file?

-- 
TIA
Uenal

             reply	other threads:[~2015-02-08 14:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-08 14:06 U.Mutlu [this message]
2015-02-08 14:22 ` [dm-crypt] inner workings of block mode encryption Ralf Ramsauer
2015-02-08 16:31   ` U.Mutlu
2015-02-08 17:42     ` Heinz Diehl
2015-02-08 21:34       ` Ralf Ramsauer
2015-02-09  2:14         ` Arno Wagner
2015-02-09  1:53     ` Arno Wagner

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='mb7qhp$3u4$1@ger.gmane.org' \
    --to=for-gmane@mutluit.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.