fit_check_sig not hashing everything.

2022-07-07 Thread Martin Bonner
I am running fit_check_sig on windows to understand in more details how it works. What I really want, is a _precise_ description of exactly which bytes of a FIT image are fed into the hash function (and in which order) in order to calculate the hash value. I then want to reproduce that hash funct

Re: fit_check_sig not hashing everything.

2022-07-08 Thread Martin Bonner
On Thu, 7 Jul 2022 at 17:29, Martin Bonner wrote: > I have a 30MB FIT image as input, and I have added some debug to > hash_calculate in rsa-checksum.c to print the amount of data being hashed. > The answer is a rather scary "1106 bytes"! ... > > Can anyone clarify what is happening? > Never min

Re: fit_check_sig not hashing everything.

2022-07-12 Thread Simon Glass
Hi Martin, On Fri, 8 Jul 2022 at 01:11, Martin Bonner wrote: > > On Thu, 7 Jul 2022 at 17:29, Martin Bonner > wrote: > > > I have a 30MB FIT image as input, and I have added some debug to > > hash_calculate in rsa-checksum.c to print the amount of data being hashed. > > The answer is a rather sc