lines.append(' {}'.format(subpacket['type']))
return lines
+ def _str_signature_creation_time_signature_subpacket(self, subpacket):
+ return str(subpacket['signature-creation-time'])
+
def _str_issuer_signature_subpacket(self, subpacket):
return subpacket['issuer'][-8:].upper()
offset += 2
self['signature'] = data[offset:]
+ def _parse_signature_creation_time_signature_subpacket(
+ self, data, subpacket):
+ subpacket['signature-creation-time'] = _struct.unpack('>I', data)[0]
+
def _parse_issuer_signature_subpacket(self, data, subpacket):
subpacket['issuer'] = ''.join('{:02x}'.format(byte) for byte in data)