Re: FUD about CGD and GBDE

From: Poul-Henning Kamp (phk_at_phk.freebsd.dk)
Date: 03/03/05

  • Next message: ALeine: "Re: FUD about CGD and GBDE"
    To: Todd Vierling <tv@duh.org>
    Date: Thu, 03 Mar 2005 22:45:34 +0100
    
    

    In message <Pine.NEB.4.62.0503031625170.12890@server.duh.org>, 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
    add strength.

    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.
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: ALeine: "Re: FUD about CGD and GBDE"