All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] inner workings of block mode encryption
@ 2015-02-08 14:06 U.Mutlu
  2015-02-08 14:22 ` Ralf Ramsauer
  0 siblings, 1 reply; 7+ messages in thread
From: U.Mutlu @ 2015-02-08 14:06 UTC (permalink / raw)
  To: dm-crypt

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-02-09  2:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-08 14:06 [dm-crypt] inner workings of block mode encryption U.Mutlu
2015-02-08 14:22 ` 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

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.