Skip to content

Commit

Permalink
add va printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Nov 2, 2022
1 parent ebc0739 commit 6d2be1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pddbcommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def __init__(self, index, v2p, disk, key, name, dna=DNA):
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()))
Expand Down

0 comments on commit 6d2be1b

Please sign in to comment.