summaryrefslogtreecommitdiff
path: root/crypto/async_tx
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-23 15:41:56 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-25 18:41:31 +0800
commitdef24f45f10de2ac4faf9f3b9264edbf1adcc997 (patch)
tree64d450979a8535bcadaad62ccd36be0fc305b1a5 /crypto/async_tx
parentf91b1adfc32638b7e53ea6b575113cf3c1675a53 (diff)
downloadlinux-crypto-def24f45f10de2ac4faf9f3b9264edbf1adcc997.tar.gz
linux-crypto-def24f45f10de2ac4faf9f3b9264edbf1adcc997.zip
crypto: seqiv - Stop using cryptoff
The cryptoff parameter was added to facilitate the skipping of IVs that sit between the AD and the plain/cipher text. However, it was never implemented correctly as and we do not handle users such as IPsec setting cryptoff. It is simply ignored. Implementing correctly is in fact more trouble than what it's worth. This patch removes the uses of cryptoff by moving the AD forward to fill the gap left by the IV. The AD is moved back after the underlying AEAD processing is finished. This is in fact beter than the cryptoff solution because it allows algorithms that use seqniv (i.e., GCM and CCM) to hash the whole packet as a single piece, while cryptoff meant that there was guaranteed to be a gap. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/async_tx')
0 files changed, 0 insertions, 0 deletions