diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-08-31 14:30:56 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-01-16 19:50:25 +0100 |
commit | a5950c69af6663895eb158027489e703a2da284f (patch) | |
tree | 3d9e5355879ac833c17a7858a4acaaee2a03b2c7 /utils/imxtools/sbtools/sbtoelf.c | |
parent | 2df6b1fc43ab3cc7b07688a7c8d18f377a754c82 (diff) | |
download | rockbox-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.c | 7 |
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) | |||
413 | sb_dump(file, NULL, generic_std_printf); | 413 | sb_dump(file, NULL, generic_std_printf); |
414 | } | 414 | } |
415 | if(loopback) | 415 | if(loopback) |
416 | { | ||
417 | /* sb_read_file will fill real key and IV but we don't want to override | ||
418 | * them when looping back otherwise the output will be inconsistent and | ||
419 | * garbage */ | ||
420 | file->override_real_key = false; | ||
421 | file->override_crypto_iv = false; | ||
422 | sb_write_file(file, loopback, 0, generic_std_printf); | 416 | sb_write_file(file, loopback, 0, generic_std_printf); |
423 | } | ||
424 | sb_free(file); | 417 | sb_free(file); |
425 | } | 418 | } |
426 | else if(force_sb1 || ver == SB_VERSION_1) | 419 | else if(force_sb1 || ver == SB_VERSION_1) |