mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
bump version code in the pddbdbg.py script as well
This commit is contained in:
parent
dcbe9f122a
commit
65499eb0fc
1 changed files with 2 additions and 2 deletions
|
|
@ -571,7 +571,7 @@ class Basis:
|
||||||
#desc += ' DictPtr: {:x}\n'.format(self.dict_ptr)
|
#desc += ' DictPtr: {:x}\n'.format(self.dict_ptr)
|
||||||
return desc
|
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(name, 'utf-8')
|
||||||
# name_bytes += bytearray(([0] * (Basis.MAX_NAME_LEN - len(name))))
|
# name_bytes += bytearray(([0] * (Basis.MAX_NAME_LEN - len(name))))
|
||||||
name_bytes += version.to_bytes(4, 'little')
|
name_bytes += version.to_bytes(4, 'little')
|
||||||
|
|
@ -739,7 +739,7 @@ class Fscb:
|
||||||
self.free_space[pp.page_number() * 4096] = pp
|
self.free_space[pp.page_number() * 4096] = pp
|
||||||
|
|
||||||
# this is the "AAD" used to encrypt the FastSpace
|
# 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')
|
return bytearray([46, 70, 97, 115, 116, 83, 112, 97, 99, 101]) + version.to_bytes(4, 'little') + dna.to_bytes(8, 'little')
|
||||||
|
|
||||||
class SpaceUpdate:
|
class SpaceUpdate:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue