Commit fdc520aa693d462f4958339534a3b596f95795b7
Committed by
Herbert Xu
1 parent
5de8f1b562
Exists in
master
and in
20 other branches
[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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/crypto/geode-aes.c
... | ... | @@ -190,7 +190,7 @@ |
190 | 190 | tfm = desc->tfm; |
191 | 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 | 195 | desc->tfm = tfm; |
196 | 196 | return ret; |
... | ... | @@ -206,7 +206,7 @@ |
206 | 206 | tfm = desc->tfm; |
207 | 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 | 211 | desc->tfm = tfm; |
212 | 212 | return ret; |