summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornlscc <66028747+nlscc@users.noreply.github.com>2021-02-09 19:44:21 +0100
committernlscc <66028747+nlscc@users.noreply.github.com>2021-02-09 19:45:21 +0100
commitc9d3e13cd544664eb84377a44fdc0a8032e54aa3 (patch)
tree479df4537ff92589d0066a662b4fff09ff67ea64
parentadd code of conduct (diff)
downloadsamloader-c9d3e13cd544664eb84377a44fdc0a8032e54aa3.tar
samloader-c9d3e13cd544664eb84377a44fdc0a8032e54aa3.tar.gz
samloader-c9d3e13cd544664eb84377a44fdc0a8032e54aa3.tar.bz2
samloader-c9d3e13cd544664eb84377a44fdc0a8032e54aa3.tar.lz
samloader-c9d3e13cd544664eb84377a44fdc0a8032e54aa3.tar.xz
samloader-c9d3e13cd544664eb84377a44fdc0a8032e54aa3.tar.zst
samloader-c9d3e13cd544664eb84377a44fdc0a8032e54aa3.zip
-rw-r--r--samloader/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/samloader/main.py b/samloader/main.py
index 63dd82e..57210dc 100644
--- a/samloader/main.py
+++ b/samloader/main.py
@@ -59,7 +59,7 @@ def main():
return
print("decyrpting", out)
# TODO: remove code duplication with decrypt command
- getkey = crypt.getv2key if filename.endswith(".enc2") else crypt.getenc4key
+ getkey = crypt.getv2key if filename.endswith(".enc2") else crypt.getv4key
key = getkey(args.fw_ver, args.dev_model, args.dev_region)
length = os.stat(out).st_size
with open(out, "rb") as inf: