summaryrefslogtreecommitdiff
path: root/crypto/internal.h
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
commitf517d94feb936131f62a5ba3568cd7c7aee1c50c (patch)
tree80847ebeaf5d7dc7c0da25fece839147c8b01ae6 /crypto/internal.h
parente1d296ebdea9e13feda64e064ab8a30b6724f749 (diff)
downloadlinux-crypto-f517d94feb936131f62a5ba3568cd7c7aee1c50c.tar.gz
linux-crypto-f517d94feb936131f62a5ba3568cd7c7aee1c50c.zip
[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 'crypto/internal.h')
0 files changed, 0 insertions, 0 deletions