aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-13 09:28:59 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 16:16:53 -0500
commit3631c650c495d61b1dabf32eb26b46873636e918 (patch)
treeb46244dc1062fbede37bff4955e205ab7d5310c3 /include/crypto
parent93cc74e078eed8735585e5687903727bcfbcc8b4 (diff)
[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>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/internal/skcipher.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/internal/skcipher.h b/include/crypto/internal/skcipher.h
index 2071999d4b5e..0053f34764ff 100644
--- a/include/crypto/internal/skcipher.h
+++ b/include/crypto/internal/skcipher.h
@@ -88,5 +88,10 @@ static inline void skcipher_givcrypt_complete(
88 ablkcipher_request_complete(&req->creq, err); 88 ablkcipher_request_complete(&req->creq, err);
89} 89}
90 90
91static inline u32 ablkcipher_request_flags(struct ablkcipher_request *req)
92{
93 return req->base.flags;
94}
95
91#endif /* _CRYPTO_INTERNAL_SKCIPHER_H */ 96#endif /* _CRYPTO_INTERNAL_SKCIPHER_H */
92 97