summaryrefslogtreecommitdiffstats
path: root/include/crypto/sha.h
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2011-08-04 20:19:24 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2011-08-10 13:00:28 +0200
commit7c390170b49337477985be7a624015160ffeb056 (patch)
treec688eca7b31c154bc107cc107001fe2ffd4c7d99 /include/crypto/sha.h
parentcrypto: picoxcell - fix possible invalid pointer dereference (diff)
downloadlinux-7c390170b49337477985be7a624015160ffeb056.tar.xz
linux-7c390170b49337477985be7a624015160ffeb056.zip
crypto: sha1 - export sha1_update for reuse
Export the update function as crypto_sha1_update() to not have the need to reimplement the same algorithm for each SHA-1 implementation. This way the generic SHA-1 implementation can be used as fallback for other implementations that fail to run under certain circumstances, like the need for an FPU context while executing in IRQ context. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--include/crypto/sha.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/crypto/sha.h b/include/crypto/sha.h
index 069e85ba97e1..83e6be5e2707 100644
--- a/include/crypto/sha.h
+++ b/include/crypto/sha.h
@@ -82,4 +82,7 @@ struct sha512_state {
u8 buf[SHA512_BLOCK_SIZE];
};
+extern int crypto_sha1_update(struct shash_desc *desc, const u8 *data,
+ unsigned int len);
+
#endif