crypto: echainiv - Add encrypted chain IV generator
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 May 2015 07:11:15 +0000 (15:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2015 03:25:56 +0000 (11:25 +0800)
commita10f554fa7e09ad236cfa0bdabaf6549c0b073a4
treeffa28aaa4a45cfafabe679a6219a11dd404037a9
parent3c08fee7b5ce471a7114478ac8c6e546787bd8c2
crypto: echainiv - Add encrypted chain IV generator

This patch adds a new AEAD IV generator echainiv.  It is intended
to replace the existing skcipher IV generator eseqiv.

If the underlying AEAD algorithm is using the old AEAD interface,
then echainiv will simply use its IV generator.

Otherwise, echainiv will encrypt a counter just like eseqiv but
it'll first xor it against a previously stored IV similar to
chainiv.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/Makefile
crypto/echainiv.c [new file with mode: 0644]