瀏覽代碼

class: move swupdate_encrypt_file to lib

Signed-off-by: Stefano Babic <sbabic@denx.de>
Stefano Babic 3 年之前
父節點
當前提交
66e050d07b
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      classes/swupdate-common.bbclass

+ 0 - 6
classes/swupdate-common.bbclass

@@ -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 = []