]> 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)
commit751d326a16aed10fc18c97d054bff766cd4bc87f
tree256c187ca2699957160165f6b6c68fc4becea792
parent85ec96186a7f0cff76ba6f3f0f0a57be955786eb
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 d263383f9188 ("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