summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/sbtools/sbtoelf.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-08-31 14:30:56 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-16 19:50:25 +0100
commita5950c69af6663895eb158027489e703a2da284f (patch)
tree3d9e5355879ac833c17a7858a4acaaee2a03b2c7 /utils/imxtools/sbtools/sbtoelf.c
parent2df6b1fc43ab3cc7b07688a7c8d18f377a754c82 (diff)
downloadrockbox-a5950c69af6663895eb158027489e703a2da284f.tar.gz
rockbox-a5950c69af6663895eb158027489e703a2da284f.zip
imxtools: rework key/IV overriding logic
The overriding of the IV and real key should be the exception, there is no need to manually set them to false. Change-Id: Id66754f20a79aa5c1a991839345d1242e0aa587d
Diffstat (limited to 'utils/imxtools/sbtools/sbtoelf.c')
-rw-r--r--utils/imxtools/sbtools/sbtoelf.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/utils/imxtools/sbtools/sbtoelf.c b/utils/imxtools/sbtools/sbtoelf.c
index 86c37f3e4c..ac8db068aa 100644
--- a/utils/imxtools/sbtools/sbtoelf.c
+++ b/utils/imxtools/sbtools/sbtoelf.c
@@ -413,14 +413,7 @@ int main(int argc, char **argv)
sb_dump(file, NULL, generic_std_printf);
}
if(loopback)
- {
- /* sb_read_file will fill real key and IV but we don't want to override
- * them when looping back otherwise the output will be inconsistent and
- * garbage */
- file->override_real_key = false;
- file->override_crypto_iv = false;
sb_write_file(file, loopback, 0, generic_std_printf);
- }
sb_free(file);
}
else if(force_sb1 || ver == SB_VERSION_1)