Re: [PATCH/proposal] dm-crypt: add digest-based iv generation mode

From: Jean-Luc Cooke
Date: Fri Feb 20 2004 - 12:24:40 EST


On Thu, Feb 19, 2004 at 11:18:35AM -0800, Andrew Morton wrote:
> Christophe Saout <christophe@xxxxxxxx> wrote:
> >
> > Hello,
> >
> > since some people keep complaining that the IV generation mechanisms
> > supplied in cryptoloop (and now dm-crypt) are insecure, which they
> > somewhat are, I just hacked a small digest based IV generation mechanism.
> >
> > It simply hashes the sector number and the key and uses it as IV.
> >
> > You can specify the encryption mode as "cipher-digest" like aes-md5 or
> > serpent-sha1 or some other combination.

As for naming the cipher-hash as "aes-sha256", why not just go all the way
and specify the mode of operation as well?

cipher-hash-modeop example: aes-sha256-cbc

As for hashing the hey etc. You should be using HMAC for that.
Christophe - would you like to change your patch to use HMACs?
http://www.faqs.org/rfcs/rfc2104.html

Cheers,

JLC

> hmm.
>
> > Consider this as a proposal, I'm not a crypto expert.
>
> Me either. But I believe that there are crypto-savvy people reading this
> list. Help would be appreciated.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--
http://www.certainkey.com
Suite 4560 CTTC
1125 Colonel By Dr.
Ottawa ON, K1S 5B6
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/