]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/hash.c
crypto/fsl - Add progressive hashing support using hardware acceleration.
[karo-tx-uboot.git] / common / hash.c
index d154d029e9c32466979bdc93116b70778402bb78..9e9f84b9fb43b0c86b16bab668a9244f0419fd0b 100644 (file)
@@ -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