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)
commit57660b11d5adbb18182e9388b83b7fb214c4e1a1
tree256c187ca2699957160165f6b6c68fc4becea792
parentccd65a206a5025cf953a2e4f37e894921b131a5c
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 8efd972ef96a ("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