mirror of
https://gitea.tendokyu.moe/beerpsi/fsdecrypt.git
synced 2026-09-29 18:27:57 +03:00
fix IV derivation
This commit is contained in:
Generated
+1
-1
@@ -507,7 +507,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
||||
|
||||
[[package]]
|
||||
name = "fsdecrypt"
|
||||
version = "0.1.6"
|
||||
version = "0.1.7"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"anyhow",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "fsdecrypt"
|
||||
version = "0.1.6"
|
||||
version = "0.1.7"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
||||
+1
-1
@@ -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)?),
|
||||
|
||||
Reference in New Issue
Block a user