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
Generated
+1 -1
View File
@@ -507,7 +507,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
name = "fsdecrypt"
version = "0.1.6"
version = "0.1.7"
dependencies = [
"aes",
"anyhow",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "fsdecrypt"
version = "0.1.6"
version = "0.1.7"
edition = "2021"
[dependencies]
+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)?),