]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] eseqiv: Add Encrypted Sequence Number IV Generator
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 5 Dec 2007 01:10:53 +0000 (12:10 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:45 +0000 (08:16 +1100)
commit1dc5dd1e4dfddea6caf9337baf34ec995bc7557e
treeb544746f70bda6413105887fe1e6d28399840e23
parent253038c06e4e83139d3ee30d69461cd9f086cfaf
[CRYPTO] eseqiv: Add Encrypted Sequence Number IV Generator

This generator generates an IV based on a sequence number by xoring it
with a salt and then encrypting it with the same key as used to encrypt
the plain text.  This algorithm requires that the block size be equal
to the IV size.  It is mainly useful for CBC.

It has one noteworthy property that for IPsec the IV happens to lie
just before the plain text so the IV generation simply increases the
number of encrypted blocks by one.  Therefore the cost of this generator
is entirely dependent on the speed of the underlying cipher.

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