]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sha1 - export sha1_update for reuse
authorMathias Krause <minipli@googlemail.com>
Thu, 4 Aug 2011 18:19:24 +0000 (20:19 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 10 Aug 2011 11:00:28 +0000 (19:00 +0800)
commit6896b04b0c7fd4a483611c673806c5f1c11c9bd7
treec688eca7b31c154bc107cc107001fe2ffd4c7d99
parent27b1af7ae50179c15a2b803a0d27f5f6fc918fc5
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>
crypto/sha1_generic.c
include/crypto/sha.h