diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-04-09 12:55:39 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-10 21:39:42 +0800 |
commit | 90451d6bdb787e1631c6ce4619221eb59562343c (patch) | |
tree | ea46e922a03c058935765ca88fac78dccb054f3d /arch/arm/crypto/sha1.h | |
parent | ca142584bc8ebc8e15b317680771ade58ca96315 (diff) | |
download | linux-90451d6bdb787e1631c6ce4619221eb59562343c.tar.gz linux-90451d6bdb787e1631c6ce4619221eb59562343c.tar.bz2 linux-90451d6bdb787e1631c6ce4619221eb59562343c.zip |
crypto: arm/sha1 - move SHA-1 ARM asm implementation to base layer
This removes all the boilerplate from the existing implementation,
and replaces it with calls into the base layer.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm/crypto/sha1.h')
-rw-r--r-- | arch/arm/crypto/sha1.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/crypto/sha1.h b/arch/arm/crypto/sha1.h new file mode 100644 index 000000000000..ffd8bd08b1a7 --- /dev/null +++ b/arch/arm/crypto/sha1.h @@ -0,0 +1,13 @@ +#ifndef ASM_ARM_CRYPTO_SHA1_H +#define ASM_ARM_CRYPTO_SHA1_H + +#include <linux/crypto.h> +#include <crypto/sha.h> + +extern int sha1_update_arm(struct shash_desc *desc, const u8 *data, + unsigned int len); + +extern int sha1_finup_arm(struct shash_desc *desc, const u8 *data, + unsigned int len, u8 *out); + +#endif |