aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto/hash.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-08-13 15:24:35 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-08-13 15:24:35 -0700
commit8d0968abd03ec6b407df117adc773562386702fa (patch)
tree61ec7f0eb052af3d7da83dee9605b1fc0fae0f57 /include/crypto/hash.h
parentMerge git://oss.sgi.com:8090/xfs/linux-2.6 (diff)
parentcrypto: padlock - fix VIA PadLock instruction usage with irq_ts_save/restore() (diff)
downloadlinux-dev-8d0968abd03ec6b407df117adc773562386702fa.tar.xz
linux-dev-8d0968abd03ec6b407df117adc773562386702fa.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: padlock - fix VIA PadLock instruction usage with irq_ts_save/restore() crypto: hash - Add missing top-level functions crypto: hash - Fix digest size check for digest type crypto: tcrypt - Fix AEAD chunk testing crypto: talitos - Add handling for SEC 3.x treatment of link table
Diffstat (limited to 'include/crypto/hash.h')
-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)
{