summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-08-05 13:34:30 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-08-13 20:08:44 +1000
commit318e5313923197e71a94f7b18835151649384b7f (patch)
treed0ceb60fb9c5b4aacbeae3165587064e2e23c86d /include/crypto
parentdbaaba1d0abf6871c7db6e3d15a46206bc386db1 (diff)
downloadlinux-318e5313923197e71a94f7b18835151649384b7f.tar.gz
linux-318e5313923197e71a94f7b18835151649384b7f.tar.bz2
linux-318e5313923197e71a94f7b18835151649384b7f.zip
crypto: hash - Add missing top-level functions
The top-level functions init/update/final were missing for ahash. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/hash.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/crypto/hash.h b/include/crypto/hash.h
index d12498ec8a4e..ee48ef8fb2ea 100644
--- a/include/crypto/hash.h
+++ b/include/crypto/hash.h
@@ -101,6 +101,24 @@ static inline int crypto_ahash_digest(struct ahash_request *req)
return crt->digest(req);
}
+static inline int crypto_ahash_init(struct ahash_request *req)
+{
+ struct ahash_tfm *crt = crypto_ahash_crt(crypto_ahash_reqtfm(req));
+ return crt->init(req);
+}
+
+static inline int crypto_ahash_update(struct ahash_request *req)
+{
+ struct ahash_tfm *crt = crypto_ahash_crt(crypto_ahash_reqtfm(req));
+ return crt->update(req);
+}
+
+static inline int crypto_ahash_final(struct ahash_request *req)
+{
+ struct ahash_tfm *crt = crypto_ahash_crt(crypto_ahash_reqtfm(req));
+ return crt->final(req);
+}
+
static inline void ahash_request_set_tfm(struct ahash_request *req,
struct crypto_ahash *tfm)
{