@@ -68,12 +68,6 @@ def swupdate_extract_keys(keyfile_path):
return key,iv
-def swupdate_encrypt_file(f, out, key, ivt):
- import subprocess
- encargs = ["openssl", "enc", "-aes-256-cbc", "-in", f, "-out", out]
- encargs += ["-K", key, "-iv", ivt, "-nosalt"]
- subprocess.run(encargs, check=True)
-
def swupdate_write_sha256(s):
import re
write_lines = []
@@ -5,12 +5,16 @@
DEPENDS += "python3-magic-native zstd-native"
<<<<<<< HEAD
+<<<<<<< HEAD
+=======
+>>>>>>> 88a830f... class: move swupdate_encrypt_file to lib
def swupdate_encrypt_file(f, out, key, ivt):
import subprocess
encargs = ["openssl", "enc", "-aes-256-cbc", "-in", f, "-out", out]
encargs += ["-K", key, "-iv", ivt, "-nosalt"]
subprocess.run(encargs, check=True)
+<<<<<<< HEAD
def swupdate_extract_keys(keyfile_path):
try:
with open(keyfile_path, 'r') as f:
@@ -29,9 +33,6 @@ def swupdate_extract_keys(keyfile_path):
return key,iv
def swupdate_get_sha256(d, s, filename):
-=======
-def swupdate_sign_ec521_sha512(d, s, filename):
->>>>>>> c6ba564... class: move swupdate_get_sha256 to library
import hashlib
m = hashlib.sha256()
Signed-off-by: Stefano Babic <sbabic@denx.de> --- classes/swupdate-common.bbclass | 6 ------ classes/swupdate-lib.bbclass | 7 ++++--- 2 files changed, 4 insertions(+), 9 deletions(-)