Re: [PATCH] image-fit: aligned output of hash calculation

2023-03-20 Thread Simon Glass
Hi Christopher, On Mon, 20 Mar 2023 at 20:49, Christoph Fritz wrote: > > When calculating the hash of a FIT image, the result is being stored in > an unaligned memory location. This causes problems (wrong hash) with the > fsl_hash CAAM engine on i.mx7ulp. > > To fix the issue, this patch introduc

RE: [EXT] [PATCH] image-fit: aligned output of hash calculation

2023-03-20 Thread Gaurav Jain
Hi > -Original Message- > From: Christoph Fritz > Sent: Monday, March 20, 2023 1:19 PM > To: u-boot > Cc: Gaurav Jain ; Meenakshi Aggarwal > > Subject: [EXT] [PATCH] image-fit: aligned output of hash calculation > > Caution: EXT Email > > When calcula

[PATCH] image-fit: aligned output of hash calculation

2023-03-20 Thread Christoph Fritz
When calculating the hash of a FIT image, the result is being stored in an unaligned memory location. This causes problems (wrong hash) with the fsl_hash CAAM engine on i.mx7ulp. To fix the issue, this patch introduces a use of memalign() to allocate memory for the hash value so that it is aligned