]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[CRYPTO] chainiv: Add chain IV generator
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 27 Nov 2007 15:17:23 +0000 (23:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:44 +0000 (08:16 +1100)
commit7f47073911f0e4384d38a0827d28305a177c8816
tree0732253520cdb0ff686166256923bc633ddceace
parentecfc43292f68566c144afca966b46b371c26d56c
[CRYPTO] chainiv: Add chain IV generator

The chain IV generator is the one we've been using in the IPsec stack.
It simply starts out with a random IV, then uses the last block of each
encrypted packet's cipher text as the IV for the next packet.

It can only be used by synchronous ciphers since we have to make sure
that we don't start the encryption of the next packet until the last
one has completed.

It does have the advantage of using very little CPU time since it doesn't
have to generate anything at all.

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