summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-timberdale.c
diff options
context:
space:
mode:
authorHoria Geantă2019-06-10 15:30:59 +0200
committerHerbert Xu2019-06-20 08:18:33 +0200
commit334d37c9e26364511f0673ef155e2ad207316e90 (patch)
treecdca67aac29710e65aa0d36515d6b965a04ac20e /drivers/gpio/gpio-timberdale.c
parentcrypto: caam - use len instead of nents for bulding HW S/G table (diff)
downloadkernel-qcow2-linux-334d37c9e26364511f0673ef155e2ad207316e90.tar.gz
kernel-qcow2-linux-334d37c9e26364511f0673ef155e2ad207316e90.tar.xz
kernel-qcow2-linux-334d37c9e26364511f0673ef155e2ad207316e90.zip
crypto: caam - update IV using HW support
Modify drivers to perform skcipher IV update using the crypto engine, instead of performing the operation in SW. Besides being more efficient, this also fixes IV update for CTR mode. Output HW S/G table is appended with an entry pointing to the same IV buffer used as input (which is now mapped BIDIRECTIONAL). AS (Algorithm State) parameter of the OPERATION command is changed from INIFINAL to INIT in descriptors used by ctr(aes), cbc(aes). This is needed since in case FINAL bit is set, HW skips IV updating in the Context Register for the last data block. Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/gpio/gpio-timberdale.c')
0 files changed, 0 insertions, 0 deletions