From 09b792c57be461e3d31b4d49e519b0452e8a17c5 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Tue, 5 Aug 2008 13:34:30 +0800 Subject: [PATCH] --- yaml --- r: 108346 b: refs/heads/master c: 318e5313923197e71a94f7b18835151649384b7f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/crypto/hash.h | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 5b82aa980c56..1ac9cd7da924 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: dbaaba1d0abf6871c7db6e3d15a46206bc386db1 +refs/heads/master: 318e5313923197e71a94f7b18835151649384b7f diff --git a/trunk/include/crypto/hash.h b/trunk/include/crypto/hash.h index d12498ec8a4e..ee48ef8fb2ea 100644 --- a/trunk/include/crypto/hash.h +++ b/trunk/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) {