ChangeSet 1.2199.14.30, 2005/03/23 12:11:58-08:00, [EMAIL PROTECTED] [CRYPTO]: Kill obsolete iv check in cbc_process() Here's some more optimisations plus a bug fix for a pathological case where in_place might not be set correctly which can't happen with any of the current users. Here is the first one: We have long since stopped using a null cit_iv as a means of doing null encryption. In fact it doesn't work here anyway since we need to copy src into dst to achieve null encryption. No user of cbc_encrypt_iv/cbc_decrypt_iv does this either so let's just get rid of this check which is sitting in the fast path. Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
cipher.c | 6 +----- 1 files changed, 1 insertion(+), 5 deletions(-) diff -Nru a/crypto/cipher.c b/crypto/cipher.c --- a/crypto/cipher.c 2005-03-26 17:24:03 -08:00 +++ b/crypto/cipher.c 2005-03-26 17:24:03 -08:00 @@ -145,11 +145,7 @@ cryptfn_t fn, int enc, void *info) { u8 *iv = info; - - /* Null encryption */ - if (!iv) - return; - + if (enc) { tfm->crt_u.cipher.cit_xor_block(iv, src); fn(crypto_tfm_ctx(tfm), dst, iv); - To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html