Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fdc520aa693d462f4958339534a3b596f95795b7
Commit:     fdc520aa693d462f4958339534a3b596f95795b7
Parent:     5de8f1b562e87ae9d93a4e0897e54c18a5e82915
Author:     Sebastian Siewior <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 10 15:48:17 2007 +0800
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Fri Jan 11 08:16:36 2008 +1100

    [CRYPTO] geode: Use correct encrypt/decrypt function in fallback
    
    crypto_blkcipher_decrypt is wrong because it does not care about
    the IV.
    
    Signed-off-by: Sebastian Siewior <[EMAIL PROTECTED]>
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
---
 drivers/crypto/geode-aes.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index 68be7d0..581b003 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -190,7 +190,7 @@ static int fallback_blk_dec(struct blkcipher_desc *desc,
        tfm = desc->tfm;
        desc->tfm = op->fallback.blk;
 
-       ret = crypto_blkcipher_decrypt(desc, dst, src, nbytes);
+       ret = crypto_blkcipher_decrypt_iv(desc, dst, src, nbytes);
 
        desc->tfm = tfm;
        return ret;
@@ -206,7 +206,7 @@ static int fallback_blk_enc(struct blkcipher_desc *desc,
        tfm = desc->tfm;
        desc->tfm = op->fallback.blk;
 
-       ret = crypto_blkcipher_encrypt(desc, dst, src, nbytes);
+       ret = crypto_blkcipher_encrypt_iv(desc, dst, src, nbytes);
 
        desc->tfm = tfm;
        return ret;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to