X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fhash.c;h=c94c98be9e13d755af9501371b3eaee28e226a70;hb=a7b1808ee3e87608bf740f845b6de6ebb550a339;hp=d154d029e9c32466979bdc93116b70778402bb78;hpb=e72d344386bf80738fab7a6bd37cb321f443093a;p=u-boot diff --git a/common/hash.c b/common/hash.c index d154d029e9..c94c98be9e 100644 --- a/common/hash.c +++ b/common/hash.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -127,11 +128,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