summaryrefslogtreecommitdiffstats
path: root/include/crypto/internal
diff options
context:
space:
mode:
authorHoria Geantă2017-12-19 11:16:07 +0100
committerHerbert Xu2017-12-28 07:56:48 +0100
commit7e0880b9fbbe7d21e29347020bef0b7329cb0e9d (patch)
treec07ae03fe84c7a3b584691a8addef389c09e3e44 /include/crypto/internal
parentcrypto: caam - save Era in driver's private data (diff)
downloadkernel-qcow2-linux-7e0880b9fbbe7d21e29347020bef0b7329cb0e9d.tar.gz
kernel-qcow2-linux-7e0880b9fbbe7d21e29347020bef0b7329cb0e9d.tar.xz
kernel-qcow2-linux-7e0880b9fbbe7d21e29347020bef0b7329cb0e9d.zip
crypto: caam - add Derived Key Protocol (DKP) support
Offload split key generation in CAAM engine, using DKP. DKP is supported starting with Era 6. Note that the way assoclen is transmitted from the job descriptor to the shared descriptor changes - DPOVRD register is used instead of MATH3 (where available), since DKP protocol thrashes the MATH registers. The replacement of MDHA split key generation with DKP has the side effect of the crypto engine writing the authentication key, and thus the DMA mapping direction for the buffer holding the key has to change from DMA_TO_DEVICE to DMA_BIDIRECTIONAL. There are two cases: -key is inlined in descriptor - descriptor buffer mapping changes -key is referenced - key buffer mapping changes Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/internal')
0 files changed, 0 insertions, 0 deletions