linux arm sha256 current $ ls -al build/versatilpb/arch/arm/pbl/zbarebox.bin -rw-r--r-- 1 root root 207786 Mar 24 13:23 build/versatilpb/arch/arm/pbl/zbarebox.bin linux arm v4 asm implementation for sha256 $ ls -al build/versatilpb/arch/arm/pbl/zbarebox.bin -rw-r--r-- 1 root root 205007 Mar 24 16:47 build/versatilpb/arch/arm/pbl/zbarebox.bin we win 2779 bytes and speed cf code Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
24 lines
630 B
C
24 lines
630 B
C
#ifndef _CRYPTO_SHA256_GLUE_H
|
|
#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);
|
|
|
|
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);
|
|
|
|
#endif /* _CRYPTO_SHA256_GLUE_H */
|