]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite62033bcc4497aba041ab9e9a64426023f7cb53c
tree1408168ec227f1874a015072bcfc3588eb04eaa9
parent245776f26db1526e4ff453676ff7ae226fea4d80
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