def _str_key_flags_signature_subpacket(self, subpacket):
return ', '.join(x for x in sorted(subpacket['key-flags']))
+ def _str_features_signature_subpacket(self, subpacket):
+ return ', '.join(x for x in sorted(subpacket['features']))
+
def _str_embedded_signature_signature_subpacket(self, subpacket):
return subpacket['embedded']['signature-type']
if data[0] & 0x80:
subpacket['key-flags'].add('private shared')
+ def _parse_features_signature_subpacket(self, data, subpacket):
+ subpacket['features'] = set()
+ if data[0] & 0x1:
+ subpacket['features'].add('modification detection')
+
def _parse_embedded_signature_signature_subpacket(self, data, subpacket):
subpacket['embedded'] = PGPPacket()
subpacket['embedded']._parse_signature_packet(data=data)