]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - implement IV retrieval
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 27 May 2019 14:51:03 +0000 (16:51 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Jun 2019 06:38:56 +0000 (14:38 +0800)
commitc07742b4458dd1acf33a55c01a4dbff9e0094ba8
tree256c187ca2699957160165f6b6c68fc4becea792
parent221d076b184b4cea012ccc61bdbab82427f7a18a
crypto: inside-secure - implement IV retrieval

This patch adds support for retrieving intermediate IV from the crypto
engine when using the CBC block mode with AES and (3)DES. The retrieved
IV is copied to the request IV buffer, as requested by the kernel crypto
API.

This fix boot tests added by
commit 71df700552bc ("crypto: testmgr - support checking skcipher output IV").

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.h
drivers/crypto/inside-secure/safexcel_cipher.c