From a5950c69af6663895eb158027489e703a2da284f Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 31 Aug 2014 14:30:56 +0200 Subject: 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 --- utils/imxtools/sbtools/sb.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'utils/imxtools/sbtools/sb.c') 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); } -- cgit v1.2.3