]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49e92d2f2d2a0e5d29b3a957afd2cf9041832c66
treeffa28aaa4a45cfafabe679a6219a11dd404037a9
parent826ab6e01ad5116ec38b6e9bd37205b1296f4936
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]