]> 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)
commit5a78cfbe3e0cb5197209da0c075abb77aaa2b863
tree8e8c87713974a5332957d16758413a7fa5258d4c
parent64f392c40c99733fb479f22451ce9908c7e9d454
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