summaryrefslogtreecommitdiffstats
path: root/security/security.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-05 12:10:53 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-11 08:16:45 +1100
commit806d183aa6cc565d0f6bd2fb7fc6bfb175cc4813 (patch)
treeb544746f70bda6413105887fe1e6d28399840e23 /security/security.c
parent15c67286685cddce207b646306e8819ec8268ede (diff)
downloadop-kernel-dev-806d183aa6cc565d0f6bd2fb7fc6bfb175cc4813.zip
op-kernel-dev-806d183aa6cc565d0f6bd2fb7fc6bfb175cc4813.tar.gz
[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>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud