[PATCH 2/3] mkimage: fit: handle FDT_ERR_NOSPACE when ciphering

2020-07-17 Thread patrick . oppenlander
From: Patrick Oppenlander This meant that the order of operations had to change. If we replace the data property first then fail to add the data-size-unciphered property the data will be ciphered again when retrying. Signed-off-by: Patrick Oppenlander --- tools/image-host.c | 19 ++

Re: [PATCH 2/3] mkimage: fit: handle FDT_ERR_NOSPACE when ciphering

2020-07-29 Thread Philippe REYNES
Hi Patrick > From: Patrick Oppenlander > > This meant that the order of operations had to change. If we replace the > data property first then fail to add the data-size-unciphered property > the data will be ciphered again when retrying. This patch is good, but I disagree with the comment. It

Re: [PATCH 2/3] mkimage: fit: handle FDT_ERR_NOSPACE when ciphering

2020-07-29 Thread Patrick Oppenlander
On Thu, Jul 30, 2020 at 1:02 AM Philippe REYNES wrote: > > Hi Patrick > > > From: Patrick Oppenlander > > > > This meant that the order of operations had to change. If we replace the > > data property first then fail to add the data-size-unciphered property > > the data will be ciphered again whe