Make is_dev for get_common_key() non-optional

This commit is contained in:
2025-04-03 13:41:44 -04:00
parent 405df67e49
commit 0bda6dabf3
6 changed files with 36 additions and 14 deletions

View File

@@ -185,7 +185,7 @@ impl Ticket {
pub fn dec_title_key(&self) -> [u8; 16] {
// Get the dev status of this Ticket so decrypt_title_key knows the right common key.
let is_dev = self.is_dev();
decrypt_title_key(self.title_key, self.common_key_index, self.title_id, Some(is_dev))
decrypt_title_key(self.title_key, self.common_key_index, self.title_id, is_dev)
}
/// Gets whether a Ticket was signed for development (true) or retail (false).