]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - fix rfc4106 encap shared descriptor
authorHoria Geant? <horia.geanta@freescale.com>
Thu, 30 Jul 2015 19:11:18 +0000 (22:11 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Jul 2015 07:17:33 +0000 (15:17 +0800)
commit154c55552b19feb37789db2a061a78515acd6e03
tree9de4746b5341e54e9bd271d7223909e3710e8a6d
parentec44318ecc6de5444e07588b39b0fdd65f5a9ebf
crypto: caam - fix rfc4106 encap shared descriptor

The encap shared descriptor was changed to use the new IV convention.
In the process some commands were shifted, making the output length
zero, caam effectively writing garbage in dst.

While here, update the decap descriptor to execute the "write" commands
before the "read"s (as it previously was).
This makes sure the input fifo is drained before becoming full.

Fixes: 5ded53a18a0c ("crypto: caam - Use new IV convention")
Signed-off-by: Horia Geant? <horia.geanta@freescale.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c