summaryrefslogtreecommitdiff
path: root/crypto/echainiv.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-23 10:41:56 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-25 13:41:31 +0300
commitdd04446e48e859c913a395497ba1a289e707269a (patch)
tree42dd01017346da9dc7f6410807cad449f82200b2 /crypto/echainiv.c
parent823655c99bdb990d687d8f293185dcc505be38c2 (diff)
downloadlinux-dd04446e48e859c913a395497ba1a289e707269a.tar.xz
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/echainiv.c')
0 files changed, 0 insertions, 0 deletions