]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - crypto/Kconfig
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)
commit856e3f4092cfd9ea6d6564e73f5bce5a0ac3cae3
tree8e8c87713974a5332957d16758413a7fa5258d4c
parent74412fd5d71b6eda0beb302aa467da000f0d530c
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