From 65499eb0fc406aaafb96959e161e47d9e14436e7 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 28 Feb 2022 04:16:06 +0800 Subject: [PATCH] bump version code in the pddbdbg.py script as well --- tools/pddbdbg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pddbdbg.py b/tools/pddbdbg.py index 99fc62d79..d6541ebec 100755 --- a/tools/pddbdbg.py +++ b/tools/pddbdbg.py @@ -571,7 +571,7 @@ class Basis: #desc += ' DictPtr: {:x}\n'.format(self.dict_ptr) return desc -def basis_aad(name, version=1, dna=0): +def basis_aad(name, version=0x01_01, dna=0): name_bytes = bytearray(name, 'utf-8') # name_bytes += bytearray(([0] * (Basis.MAX_NAME_LEN - len(name)))) name_bytes += version.to_bytes(4, 'little') @@ -739,7 +739,7 @@ class Fscb: self.free_space[pp.page_number() * 4096] = pp # this is the "AAD" used to encrypt the FastSpace - def aad(version=1, dna=0): + def aad(version=0x01_01, dna=0): return bytearray([46, 70, 97, 115, 116, 83, 112, 97, 99, 101]) + version.to_bytes(4, 'little') + dna.to_bytes(8, 'little') class SpaceUpdate: