[CRYPTO] null: Add null blkcipher algorithm
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2007 14:28:59 +0000 (22:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:53 +0000 (08:16 +1100)
commit3631c650c495d61b1dabf32eb26b46873636e918
treeb46244dc1062fbede37bff4955e205ab7d5310c3
parent93cc74e078eed8735585e5687903727bcfbcc8b4
[CRYPTO] null: Add null blkcipher algorithm

This patch adds a null blkcipher algorithm called ecb(cipher_null) for
backwards compatibility.  Previously the null algorithm when used by
IPsec copied the data byte by byte.  This new algorithm optimises that
to a straight memcpy which lets us better measure inherent overheads in
our IPsec code.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/crypto_null.c
include/crypto/internal/skcipher.h