diff options
author | Sebastian Siewior <sebastian@breakpoint.cc> | 2007-12-10 02:48:17 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-10 16:16:36 -0500 |
commit | fdc520aa693d462f4958339534a3b596f95795b7 (patch) | |
tree | 04936bf00ae457c09c44a85d4a3bfd15df4014e6 /drivers | |
parent | 5de8f1b562e87ae9d93a4e0897e54c18a5e82915 (diff) |
[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.c | 4 |
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, | |||
190 | tfm = desc->tfm; | 190 | tfm = desc->tfm; |
191 | desc->tfm = op->fallback.blk; | 191 | desc->tfm = op->fallback.blk; |
192 | 192 | ||
193 | ret = crypto_blkcipher_decrypt(desc, dst, src, nbytes); | 193 | ret = crypto_blkcipher_decrypt_iv(desc, dst, src, nbytes); |
194 | 194 | ||
195 | desc->tfm = tfm; | 195 | desc->tfm = tfm; |
196 | return ret; | 196 | return ret; |
@@ -206,7 +206,7 @@ static int fallback_blk_enc(struct blkcipher_desc *desc, | |||
206 | tfm = desc->tfm; | 206 | tfm = desc->tfm; |
207 | desc->tfm = op->fallback.blk; | 207 | desc->tfm = op->fallback.blk; |
208 | 208 | ||
209 | ret = crypto_blkcipher_encrypt(desc, dst, src, nbytes); | 209 | ret = crypto_blkcipher_encrypt_iv(desc, dst, src, nbytes); |
210 | 210 | ||
211 | desc->tfm = tfm; | 211 | desc->tfm = tfm; |
212 | return ret; | 212 | return ret; |