diff --git a/Cargo.lock b/Cargo.lock index 4430fe3..b3a06ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -507,7 +507,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fsdecrypt" -version = "0.1.6" +version = "0.1.7" dependencies = [ "aes", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index f7f2168..afc83a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fsdecrypt" -version = "0.1.6" +version = "0.1.7" edition = "2021" [dependencies] diff --git a/src/stream.rs b/src/stream.rs index 0a2661e..13e94c6 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -138,7 +138,7 @@ impl FscryptDecryptor { } let data_offset = bootid.header_block_count * bootid.block_size; - let mut page = vec![0u8; PAGE_SIZE as usize]; + let mut page: Vec = 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)?),