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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to