|
@@ -28,6 +28,7 @@ def numpy_array_from_file(
|
|
|
def split_pgp_file(
|
|
|
path: pathlib.Path,
|
|
|
) -> typing.Iterator[typing.Union[bytearray, pgpdump.packet.Packet]]:
|
|
|
+ # https://datatracker.ietf.org/doc/html/rfc4880#section-4
|
|
|
bundle = pgpdump.BinaryData(path.read_bytes())
|
|
|
remaining_bytes = bundle.data
|
|
|
for packet in bundle.packets():
|