mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
crypto/fsl - Add progressive hashing support using hardware acceleration.
Currently only normal hashing is supported using hardware acceleration. Added support for progressive hashing using hardware. Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com> Signed-off-by: Gaurav Rana <gaurav.rana@freescale.com> CC: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: York Sun <yorksun@freescale.com>
This commit is contained in:
@@ -127,11 +127,21 @@ static struct hash_algo hash_algo[] = {
|
||||
SHA1_SUM_LEN,
|
||||
hw_sha1,
|
||||
CHUNKSZ_SHA1,
|
||||
#ifdef CONFIG_SHA_PROG_HW_ACCEL
|
||||
hw_sha_init,
|
||||
hw_sha_update,
|
||||
hw_sha_finish,
|
||||
#endif
|
||||
}, {
|
||||
"sha256",
|
||||
SHA256_SUM_LEN,
|
||||
hw_sha256,
|
||||
CHUNKSZ_SHA256,
|
||||
#ifdef CONFIG_SHA_PROG_HW_ACCEL
|
||||
hw_sha_init,
|
||||
hw_sha_update,
|
||||
hw_sha_finish,
|
||||
#endif
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_SHA1
|
||||
|
Reference in New Issue
Block a user