]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: seqiv - Add support for new AEAD interface
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 May 2015 07:11:13 +0000 (15:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2015 03:25:56 +0000 (11:25 +0800)
commitc76a1b5ed44806f5673f11fba59467ff0d933805
tree8e8c87713974a5332957d16758413a7fa5258d4c
parentd6d199468d7ded01c4e3033b4573e03f54531c80
crypto: seqiv - Add support for new AEAD interface

This patch converts the seqiv IV generator to work with the new
AEAD interface where IV generators are just normal AEAD algorithms.

Full backwards compatibility is paramount at this point since
no users have yet switched over to the new interface.  Nor can
they switch to the new interface until IV generation is fully
supported by it.

So this means we are adding two versions of seqiv alongside the
existing one.  The first one is the one that will be used when
the underlying AEAD algorithm has switched over to the new AEAD
interface.  The second one handles the current case where the
underlying AEAD algorithm still uses the old interface.

Both versions export themselves through the new AEAD interface.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/aead.c
crypto/seqiv.c
include/crypto/internal/aead.h