OSDN Git Service

crypto: chelsio - Update IV before sending request to HW
authorHarsh Jain <harsh@chelsio.com>
Tue, 6 Mar 2018 05:07:50 +0000 (10:37 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Mar 2018 15:35:46 +0000 (23:35 +0800)
commit5fb78dba1667d63ab5ebed19724477a2f1e08717
tree1408168ec227f1874a015072bcfc3588eb04eaa9
parent1d693cf65006d2e15fd19e89d4b364309ca63ec4
crypto: chelsio - Update IV before sending request to HW

CBC Decryption requires Last Block as IV. In case src/dst buffer
are same last block will be replaced by plain text. This patch copies
the Last Block before sending request to HW.

Signed-off-by: Harsh Jain <harsh@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c