Subject: Re: FUD about CGD and GBDE
To: Todd Vierling <email@example.com>
From: Poul-Henning Kamp <firstname.lastname@example.org>
Date: 03/03/2005 22:45:34
In message <Pine.NEB.email@example.com>, Todd Vierling writes:
>On Thu, 3 Mar 2005, Poul-Henning Kamp wrote:
>> And if CGD is _so_ officially approved as you say, then I can not
>> for the life of me understand how it can use the same key to generate
>> the IV and perform the encryption. At the very least two different
>> keys should have been used at the "expense" of making the masterkey
>> 512 bits instead of 256.
>Technically, two different keys are used. The IV is generated from the
>block number (although it's pluggable for other IV generation methods,
>should one be desired; take a look!).
As I read it, he encrypts the block number using the key to get the IV
which he then uses with the key to encrypt the data.
Since the attacker know the block number the IV generation doesn't
In fact expose any weakness in the algorithm even more because it
offers two-way leverage on the algorithm.
It also adds a very efficient hit-detector for a brute force attack.
It would have been much better to use a different key to generate the IV.
And did he salt the block number at all ? I don't think so...
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.