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/sb.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/sb.c')
-rw-r--r-- | utils/imxtools/sbtools/sb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/utils/imxtools/sbtools/sb.c b/utils/imxtools/sbtools/sb.c index 183434efad..c005b07ff7 100644 --- a/utils/imxtools/sbtools/sb.c +++ b/utils/imxtools/sbtools/sb.c | |||
@@ -935,9 +935,7 @@ struct sb_file_t *sb_read_memory(void *_buf, size_t filesize, unsigned flags, vo | |||
935 | printf(GREEN, " IV : "); | 935 | printf(GREEN, " IV : "); |
936 | print_hex(YELLOW, buf, 16, true); | 936 | print_hex(YELLOW, buf, 16, true); |
937 | 937 | ||
938 | sb_file->override_real_key = true; | ||
939 | memcpy(sb_file->real_key, real_key, 16); | 938 | memcpy(sb_file->real_key, real_key, 16); |
940 | sb_file->override_crypto_iv = true; | ||
941 | memcpy(sb_file->crypto_iv, buf, 16); | 939 | memcpy(sb_file->crypto_iv, buf, 16); |
942 | } | 940 | } |
943 | 941 | ||