Re: [PATCH 3/3] mkimage: fit: don't cipher ciphered data

2020-07-29 Thread Patrick Oppenlander
On Thu, Jul 30, 2020 at 3:17 AM Philippe REYNES wrote: > > As for the second patch, I think that the loop is not an issue because > it always start with "fresh/clean" value (using a backup file). > > So I am not sure that changes in this function are needed. > OK, I overlooked this. I will resub

Re: [PATCH 3/3] mkimage: fit: don't cipher ciphered data

2020-07-29 Thread Philippe REYNES
Hi Patrick, > From: Patrick Oppenlander > > Previously, mkimage -F could be run multiple times causing already > ciphered image data to be ciphered again. Good catch, mkimage -F cipher data that are already ciphered, generating a broken FIT image. > Signed-off-by: Patrick Oppenlander > ---

[PATCH 3/3] mkimage: fit: don't cipher ciphered data

2020-07-17 Thread patrick . oppenlander
From: Patrick Oppenlander Previously, mkimage -F could be run multiple times causing already ciphered image data to be ciphered again. Signed-off-by: Patrick Oppenlander --- tools/image-host.c | 47 +++--- 1 file changed, 32 insertions(+), 15 deletions(-