summaryrefslogtreecommitdiff
path: root/crypto/anubis.c
diff options
context:
space:
mode:
authorAlex Porosanu <alexandru.porosanu@nxp.com>2016-11-09 10:46:11 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-11-13 17:45:06 +0800
commitd128af17876d79b87edf048303f98b35f6a53dbc (patch)
tree10b1eb369189aa42ef787d6fed3e8627548e9c23 /crypto/anubis.c
parentd266f44b5b517025249c4200eaa4bb892facc9a5 (diff)
crypto: caam - fix AEAD givenc descriptors
The AEAD givenc descriptor relies on moving the IV through the output FIFO and then back to the CTX2 for authentication. The SEQ FIFO STORE could be scheduled before the data can be read from OFIFO, especially since the SEQ FIFO LOAD needs to wait for the SEQ FIFO LOAD SKIP to finish first. The SKIP takes more time when the input is SG than when it's a contiguous buffer. If the SEQ FIFO LOAD is not scheduled before the STORE, the DECO will hang waiting for data to be available in the OFIFO so it can be transferred to C2. In order to overcome this, first force transfer of IV to C2 by starting the "cryptlen" transfer first and then starting to store data from OFIFO to the output buffer. Fixes: 1acebad3d8db8 ("crypto: caam - faster aead implementation") Cc: <stable@vger.kernel.org> # 3.2+ Signed-off-by: Alex Porosanu <alexandru.porosanu@nxp.com> Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/anubis.c')
0 files changed, 0 insertions, 0 deletions