fix IV derivation

This commit is contained in:
beerpsi
2026-01-21 09:26:00 +07:00
parent 362fb91ff7
commit 4c3ebd9771
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ impl<R: Read + Seek> FscryptDecryptor<R> {
}
let data_offset = bootid.header_block_count * bootid.block_size;
let mut page = vec![0u8; PAGE_SIZE as usize];
let mut page: Vec<u8> = Vec::with_capacity(PAGE_SIZE as usize);
let keys = match bootid.container_type {
ContainerType::OS => get_game_keys(std::str::from_utf8(&bootid.os_id)?),
ContainerType::APP => get_game_keys(std::str::from_utf8(&bootid.game_id)?),