1
0
Fork 0
forked from len0rd/rockbox

imxtools: correctly read unencrypted images in raw mode

Change-Id: I87830b81a017f36d2887d9c289d09812f227b157
This commit is contained in:
Amaury Pouly 2014-08-31 14:32:01 +02:00
parent a5950c69af
commit cb8a98e365

View file

@ -938,6 +938,8 @@ struct sb_file_t *sb_read_memory(void *_buf, size_t filesize, unsigned flags, vo
memcpy(sb_file->real_key, real_key, 16); memcpy(sb_file->real_key, real_key, 16);
memcpy(sb_file->crypto_iv, buf, 16); memcpy(sb_file->crypto_iv, buf, 16);
} }
else
valid_key = true;
/* sections */ /* sections */
if(!(flags & SB_RAW_MODE)) if(!(flags & SB_RAW_MODE))