Messages in this thread | | | From | (David Wagner) | Subject | Re: A patch to loop.c for better cryption support | Date | 14 Oct 2000 17:09:04 GMT |
| |
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/
| |