summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/imxtools/sbtools/sb.c2
-rw-r--r--utils/imxtools/sbtools/sbtoelf.c7
2 files changed, 0 insertions, 9 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
printf(GREEN, " IV : ");
print_hex(YELLOW, buf, 16, true);
- sb_file->override_real_key = true;
memcpy(sb_file->real_key, real_key, 16);
- sb_file->override_crypto_iv = true;
memcpy(sb_file->crypto_iv, buf, 16);
}
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)