@@ -178,7 +178,7 @@ def __init__(self, data="", offset=0):
178178 if data :
179179 self .unpack (data , offset )
180180
181- def unpack (self , data , offset = 0 ):
181+ def unpack (self , data , offset = 0 , psize = 0 ):
182182 StructFormatter .unpack (self , data , offset )
183183 offset += 12
184184 self .modulus = data [offset : offset + self .nlen ]
@@ -205,7 +205,7 @@ def __init__(self, data="", offset=0):
205205 if data :
206206 self .unpack (data , offset )
207207
208- def unpack (self , data , offset = 0 ):
208+ def unpack (self , data , offset = 0 , psize = 0 ):
209209 StructFormatter .unpack (self , data , offset )
210210 assert self .header .tag == HAB_TAG_CRT
211211 crtend = offset + self .header .length
@@ -241,7 +241,7 @@ def __init__(self, data="", offset=0):
241241 if data :
242242 self .unpack (data , offset )
243243
244- def unpack (self , data , offset = 0 ):
244+ def unpack (self , data , offset = 0 , psize = 0 ):
245245 StructFormatter .unpack (self , data , offset )
246246 assert self .header .tag == HAB_TAG_CSF
247247 csfend = offset + self .header .length
@@ -298,7 +298,7 @@ def __init__(self, data="", offset=0):
298298 if data :
299299 self .unpack (data , offset )
300300
301- def unpack (self , data , offset = 0 ):
301+ def unpack (self , data , offset = 0 , psize = 0 ):
302302 StructFormatter .unpack (self , data , offset )
303303 assert self .cmd == HAB_CMD_CHK_DAT
304304 self .flags = self .par >> 3
@@ -355,7 +355,7 @@ def __init__(self, data="", offset=0):
355355 if data :
356356 self .unpack (data , offset )
357357
358- def unpack (self , data , offset = 0 ):
358+ def unpack (self , data , offset = 0 , psize = 0 ):
359359 StructFormatter .unpack (self , data , offset )
360360 assert self .cmd == HAB_CMD_UNLK
361361 if self .len > self .size ():
@@ -400,7 +400,7 @@ def __init__(self, data="", offset=0):
400400 if data :
401401 self .unpack (data , offset )
402402
403- def unpack (self , data , offset = 0 ):
403+ def unpack (self , data , offset = 0 , psize = 0 ):
404404 StructFormatter .unpack (self , data , offset )
405405 assert self .cmd == HAB_CMD_INS_KEY
406406 if self .len > self .size ():
@@ -458,7 +458,7 @@ def blks_format(k, x, cls=None):
458458 s .append ((Token .Literal , ")" ))
459459 return highlight (s )
460460
461- def unpack (self , data , offset = 0 ):
461+ def unpack (self , data , offset = 0 , psize = 0 ):
462462 StructFormatter .unpack (self , data , offset )
463463 assert self .cmd == HAB_CMD_AUT_DAT
464464 if self .len > self .size ():
0 commit comments