Re: [PATCH v3 06/14] common: fit: Use hash.c to call CRC/SHA function

2021-07-25 Thread Tom Rini
On Mon, Jul 26, 2021 at 12:06:28AM +, ChiaWei Wang wrote: > Hi Tom, > > > From: Tom Rini > > Sent: Saturday, July 24, 2021 8:57 PM > > > > On Tue, Jul 20, 2021 at 02:38:31PM +0800, Chia-Wei Wang wrote: > > > > > From: Joel Stanley > > > > > > Currently the FIT verification calls directly i

RE: [PATCH v3 06/14] common: fit: Use hash.c to call CRC/SHA function

2021-07-25 Thread ChiaWei Wang
Hi Tom, > From: Tom Rini > Sent: Saturday, July 24, 2021 8:57 PM > > On Tue, Jul 20, 2021 at 02:38:31PM +0800, Chia-Wei Wang wrote: > > > From: Joel Stanley > > > > Currently the FIT verification calls directly into SW implemented > > functions to get a CRC/SHA/MD5 hash. > > > > This patch rem

Re: [PATCH v3 06/14] common: fit: Use hash.c to call CRC/SHA function

2021-07-24 Thread Tom Rini
On Tue, Jul 20, 2021 at 02:38:31PM +0800, Chia-Wei Wang wrote: > From: Joel Stanley > > Currently the FIT verification calls directly into > SW implemented functions to get a CRC/SHA/MD5 hash. > > This patch removes duplcated algorithm lookup and use > hash_lookup_algo to get the hashing functi

[PATCH v3 06/14] common: fit: Use hash.c to call CRC/SHA function

2021-07-19 Thread Chia-Wei Wang
From: Joel Stanley Currently the FIT verification calls directly into SW implemented functions to get a CRC/SHA/MD5 hash. This patch removes duplcated algorithm lookup and use hash_lookup_algo to get the hashing function with HW accelearation supported if configured. The MD5 direct call remains