forked from len0rd/rockbox
imxtools: correctly read unencrypted images in raw mode
Change-Id: I87830b81a017f36d2887d9c289d09812f227b157
This commit is contained in:
parent
a5950c69af
commit
cb8a98e365
1 changed files with 2 additions and 0 deletions
|
|
@ -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->crypto_iv, buf, 16);
|
||||
}
|
||||
else
|
||||
valid_key = true;
|
||||
|
||||
/* sections */
|
||||
if(!(flags & SB_RAW_MODE))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue