crypto: authencesn - Fix breakage with new ESP code
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 7 Aug 2015 08:00:04 +0000 (16:00 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 10 Aug 2015 15:13:51 +0000 (23:13 +0800)
commit443c0d7ed9d3815b3425ca12d65337d52b9a0c34
treef814eb9c062fb4b682bca4e941613be59dae9fa9
parent17fb874dee093139923af8ed36061faa92cc8e79
crypto: authencesn - Fix breakage with new ESP code

The ESP code has been updated to generate a completely linear
AD SG list.  This unfortunately broke authencesn which expects
the AD to be divided into at least three parts.

This patch fixes it to cope with the new format.  Later we will
fix it properly to accept arbitrary input and not rely on the
input being linear as part of the AEAD conversion.

Fixes: 7021b2e1cddd ("esp4: Switch to new AEAD interface")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/authencesn.c