Re: A patch to loop.c for better cryption support

From: David Wagner (daw@mozart.cs.berkeley.edu)
Date: Sat Oct 14 2000 - 12:09:04 EST


IV's should never be repeated (per key). If you are using CBC mode,
they should not be just a counter, either (for different reasons).

A simple implementation technique is simply to use the encryption of
a block number / sector number / counter as your IV. This ensures that
IV's don't repeat and that they all look cryptographically random.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:27 EST