Message ID | 20191023211101.16591-12-adrian.freihofer@siemens.com |
---|---|
State | Changes Requested |
Headers | show |
Series | simplify swupdate config | expand |
Hi Adrian, On 23/10/19 23:11, Adrian Freihofer wrote: > Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> > --- > classes/swupdate-enc.bbclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/classes/swupdate-enc.bbclass b/classes/swupdate-enc.bbclass > index 5e3fe79..198ae98 100644 > --- a/classes/swupdate-enc.bbclass > +++ b/classes/swupdate-enc.bbclass > @@ -13,7 +13,7 @@ swu_encrypt_file() { > key=`cat ${SWUPDATE_AES_FILE} | grep ^key | cut -d '=' -f 2` > iv=`cat ${SWUPDATE_AES_FILE} | grep ^iv | cut -d '=' -f 2` > salt=`cat ${SWUPDATE_AES_FILE} | grep ^salt | cut -d '=' -f 2` > - if [ -z ${salt} ] || [ -z ${key} ] || [ -z {iv} ];then > + if [ -z ${salt} ] || [ -z ${key} ] || [ -z ${iv} ];then > bbfatal "SWUPDATE_AES_FILE=$SWUPDATE_AES_FILE does not contain valid keys" > fi > openssl enc -aes-256-cbc -in ${input} -out ${output} -K ${key} -iv ${iv} -S ${salt} > Thanks for fixing this bug. Acked-by: Stefano Babic <sbabic@denx.de> Best regards, Stefano Babic
diff --git a/classes/swupdate-enc.bbclass b/classes/swupdate-enc.bbclass index 5e3fe79..198ae98 100644 --- a/classes/swupdate-enc.bbclass +++ b/classes/swupdate-enc.bbclass @@ -13,7 +13,7 @@ swu_encrypt_file() { key=`cat ${SWUPDATE_AES_FILE} | grep ^key | cut -d '=' -f 2` iv=`cat ${SWUPDATE_AES_FILE} | grep ^iv | cut -d '=' -f 2` salt=`cat ${SWUPDATE_AES_FILE} | grep ^salt | cut -d '=' -f 2` - if [ -z ${salt} ] || [ -z ${key} ] || [ -z {iv} ];then + if [ -z ${salt} ] || [ -z ${key} ] || [ -z ${iv} ];then bbfatal "SWUPDATE_AES_FILE=$SWUPDATE_AES_FILE does not contain valid keys" fi openssl enc -aes-256-cbc -in ${input} -out ${output} -K ${key} -iv ${iv} -S ${salt}
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> --- classes/swupdate-enc.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)