On 01/06/2011 07:16 PM, Phil Sutter wrote:
> When trying to en-/decrypt a buffer using CBC in two steps by
> passing a part from the buffer's start at first, and then the
> remaining data in the second call, the second operation depends on
> the first one in that it's IV depends on it's result. Insiders know
> of course, that the IV of any CBC block to operate on is simply the
> enciphered last block. So this patch is maybe most useful for
> everyone else, altering the passed IV upon returning the results.

Why do you need that? This is really CBC specific and might make no
sense in other modes (that might be added in the future). If the code
this flag is supposed to target is CBC-specific anyway, wouldn't it be
easier to just use the last block?

regards,
Nikos

_______________________________________________
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel

Reply via email to