MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / parse

Method parse

pgpy/packet/packets.py:1015–1024  ·  view source on GitHub ↗
(self, packet)

Source from the content-addressed store, hash-verified

1013 return _bytes
1014
1015 def parse(self, packet):
1016 super(CompressedData, self).parse(packet)
1017 self.calg = packet[0]
1018 del packet[0]
1019
1020 cdata = bytearray(self.calg.decompress(packet[:self.header.length - 1]))
1021 del packet[:self.header.length - 1]
1022
1023 while len(cdata) > 0:
1024 self.packets.append(Packet(cdata))
1025
1026
1027class SKEData(Packet):

Callers

nothing calls this directly

Calls 3

PacketClass · 0.85
decompressMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected