summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSebastian Siewior <sebastian@breakpoint.cc>2007-12-10 15:48:17 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-11 08:16:36 +1100
commitfdc520aa693d462f4958339534a3b596f95795b7 (patch)
tree04936bf00ae457c09c44a85d4a3bfd15df4014e6 /drivers
parent5de8f1b562e87ae9d93a4e0897e54c18a5e82915 (diff)
downloadlinux-fdc520aa693d462f4958339534a3b596f95795b7.tar.bz2
[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 <sebastian@breakpoint.cc> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/geode-aes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index 68be7d08aeb3..581b003ad25c 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;