[dm-devel] [PATCH 1/2] dm-crypt: Properly handle extra key string in initialization

Alasdair G Kergon agk at redhat.com
Wed Oct 30 03:23:46 UTC 2013


On Mon, Oct 28, 2013 at 11:21:03PM +0100, Milan Broz wrote:
> Example where key string contains main key K, whitening key
> Kw and IV seed Kiv:
> 
> |     K       |   Kiv   |       Kw       |
> |--------------- key_size ---------------|
> |             |-----key_extra_size-------|
> |  [1 key]    | [1 key] |     [1 key]    | => key_parts = 3
 
Ah, part of the confusion is because this patch does not actually support 
this case yet, does it?  That's for the next patch!

Can we update this patch header accordingly?
Maybe even move those ASCII diagrams into the code as comments.

Alasdair




More information about the dm-devel mailing list