From 6d2be1b6d720a5f3746a4ddb11aac5b2da35b06a Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 2 Nov 2022 21:52:28 +0800 Subject: [PATCH] add va printouts --- tools/pddbcommon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pddbcommon.py b/tools/pddbcommon.py index 97f7b845a..2c719070c 100644 --- a/tools/pddbcommon.py +++ b/tools/pddbcommon.py @@ -282,7 +282,7 @@ class BasisDicts: pp = v2p[dict_header_vaddr] self.keys = {} try: - logging.debug('dict decrypt @ pp {:x}, nonce: {}'.format(pp, disk[pp:pp+12].hex())) + logging.debug('dict decrypt @ pp {:x} va {:x}, nonce: {}'.format(pp, dict_header_vaddr, disk[pp:pp+12].hex())) cipher = AES_GCM_SIV(key, disk[pp:pp+12]) pt_data = cipher.decrypt(disk[pp+12:pp+PAGE_SIZE], basis_aad(name, dna=dna)) # print('raw pt_data: {}'.format(pt_data[:127].hex()))