Commit 96711869 authored by Christoph Lauer's avatar Christoph Lauer Committed by Stefano Babic
Browse files

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: default avatarChristoph Lauer <>
Acked-by: Stefano Babic's avatarStefano Babic <>
parent 21092c20
...@@ -30,9 +30,9 @@ def swupdate_extract_keys(keyfile_path): ...@@ -30,9 +30,9 @@ def swupdate_extract_keys(keyfile_path):
k,v = _.split('=',maxsplit=1) k,v = _.split('=',maxsplit=1)
data[k.rstrip()] = v data[k.rstrip()] = v
key = data['key'] key = data['key'].rstrip('\n')
iv = data['iv'] iv = data['iv'].rstrip('\n')
salt = data['salt'] salt = data['salt'].rstrip('\n')
return key,iv,salt return key,iv,salt
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment