mirror of
https://github.com/xavo95/repak.git
synced 2025-01-18 10:54:38 +00:00
Fix alignment for encrypted file data
This commit is contained in:
parent
58bbb52738
commit
254e0ce4c0
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ impl Entry {
|
|||
let data_offset = reader.stream_position()?;
|
||||
let mut data = reader.read_len(match self.encrypted {
|
||||
// add alignment (aes block size: 16) then zero out alignment bits
|
||||
true => (self.compressed + 15) & !17,
|
||||
true => (self.compressed + 15) & !15,
|
||||
false => self.compressed,
|
||||
} as usize)?;
|
||||
if self.encrypted {
|
||||
|
|
Loading…
Reference in a new issue