summaryrefslogtreecommitdiffstats
path: root/include/linux/crypto.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-07-07 20:54:35 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-07-10 20:35:18 +0800
commit166247f46a9c866e6f7f7d2212be875fb82212a1 (patch)
tree54818c04ba4224b1a3d717f0dbf62456bb32deaa /include/linux/crypto.h
parentca786dc738f4f583b57b1bba7a335b5e8233f4b0 (diff)
downloadlinux-166247f46a9c866e6f7f7d2212be875fb82212a1.tar.gz
linux-166247f46a9c866e6f7f7d2212be875fb82212a1.tar.bz2
linux-166247f46a9c866e6f7f7d2212be875fb82212a1.zip
crypto: hash - Removed vestigial ahash fields
The base field in ahash_tfm appears to have been cut-n-pasted from ablkcipher. It isn't needed here at all. Similarly, the info field in ahash_request also appears to have originated from its cipher counter-part and is vestigial. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r--include/linux/crypto.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index b6efe569128d..68ef293644d3 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -137,8 +137,6 @@ struct ablkcipher_request {
struct ahash_request {
struct crypto_async_request base;
- void *info;
-
unsigned int nbytes;
struct scatterlist *src;
u8 *result;
@@ -420,7 +418,6 @@ struct ahash_tfm {
unsigned int keylen);
unsigned int digestsize;
- struct crypto_ahash *base;
unsigned int reqsize;
};
@@ -1384,7 +1381,7 @@ static inline int crypto_ahash_setkey(struct crypto_ahash *tfm,
{
struct ahash_tfm *crt = crypto_ahash_crt(tfm);
- return crt->setkey(crt->base, key, keylen);
+ return crt->setkey(tfm, key, keylen);
}
static inline int crypto_ahash_digest(struct ahash_request *req)
@@ -1396,7 +1393,7 @@ static inline int crypto_ahash_digest(struct ahash_request *req)
static inline void ahash_request_set_tfm(struct ahash_request *req,
struct crypto_ahash *tfm)
{
- req->base.tfm = crypto_ahash_tfm(crypto_ahash_crt(tfm)->base);
+ req->base.tfm = crypto_ahash_tfm(tfm);
}
static inline struct ahash_request *ahash_request_alloc(