diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-04-09 13:55:42 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-10 16:39:44 +0300 |
commit | b59e2ae3690c8ef5f8ddeeb0b6b3313521b915e6 (patch) | |
tree | edeb434373ecda30560cbe32e9a51e61c905e1dd /arch/arm/crypto/sha256_glue.h | |
parent | dde00981e64b3c6621cafe3eea2eef6a4055208c (diff) | |
download | linux-b59e2ae3690c8ef5f8ddeeb0b6b3313521b915e6.tar.xz |
crypto: arm/sha256 - move SHA-224/256 ASM/NEON 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/sha256_glue.h')
-rw-r--r-- | arch/arm/crypto/sha256_glue.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/arch/arm/crypto/sha256_glue.h b/arch/arm/crypto/sha256_glue.h index 0312f4ffe8cc..7cf0bf786ada 100644 --- a/arch/arm/crypto/sha256_glue.h +++ b/arch/arm/crypto/sha256_glue.h @@ -2,22 +2,13 @@ #define _CRYPTO_SHA256_GLUE_H #include <linux/crypto.h> -#include <crypto/sha.h> extern struct shash_alg sha256_neon_algs[2]; -extern int sha256_init(struct shash_desc *desc); +int crypto_sha256_arm_update(struct shash_desc *desc, const u8 *data, + unsigned int len); -extern int sha224_init(struct shash_desc *desc); - -extern int __sha256_update(struct shash_desc *desc, const u8 *data, - unsigned int len, unsigned int partial); - -extern int sha256_update(struct shash_desc *desc, const u8 *data, - unsigned int len); - -extern int sha256_export(struct shash_desc *desc, void *out); - -extern int sha256_import(struct shash_desc *desc, const void *in); +int crypto_sha256_arm_finup(struct shash_desc *desc, const u8 *data, + unsigned int len, u8 *hash); #endif /* _CRYPTO_SHA256_GLUE_H */ |