]> 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)
commit3763474695cafd31f3561e69e18f83c08e1d5a8d
treeffa28aaa4a45cfafabe679a6219a11dd404037a9
parentda712d7ade2e2c87da8e80217d51319fccfc0a4a
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]