Prechádzať zdrojové kódy

remove line feed from encryption values

The python function swupdate_extract_keys returns the encryption values key, iv and salt with a line feed ('\n') at the end, which needs to be removed.

Signed-off-by: Christoph Lauer <christoph.lauer@xtronic.de>
Acked-by: Stefano Babic <sbabic@denx.de>
Christoph Lauer 5 rokov pred
rodič
commit
6b8d63a2cb
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      classes/swupdate-common.bbclass

+ 3 - 3
classes/swupdate-common.bbclass

@@ -30,9 +30,9 @@ def swupdate_extract_keys(keyfile_path):
         k,v = _.split('=',maxsplit=1)
         data[k.rstrip()] = v
 
-    key = data['key']
-    iv = data['iv']
-    salt = data['salt']
+    key = data['key'].rstrip('\n')
+    iv = data['iv'].rstrip('\n')
+    salt = data['salt'].rstrip('\n')
 
     return key,iv,salt