Added content region parsing and content encryption/decryption

This commit is contained in:
2025-03-18 09:13:34 -04:00
parent 247f120da4
commit 93f2103763
9 changed files with 202 additions and 32 deletions

View File

@@ -119,7 +119,7 @@ impl Ticket {
}
pub fn to_vec(&self) -> Result<Vec<u8>, std::io::Error> {
let mut buf = Vec::new();
let mut buf: Vec<u8> = Vec::new();
buf.write_u32::<BigEndian>(self.signature_type)?;
buf.write_all(&self.signature)?;
buf.write_all(&self.padding1)?;