|
@@ -17,6 +17,14 @@ pandas.options.display.max_rows = 200
|
|
|
sympy.init_printing(pretty_print=True)
|
|
|
|
|
|
|
|
|
+def join_pgp_packets(
|
|
|
+ packets: typing.Iterator[typing.Union[bytearray, pgpdump.packet.Packet]],
|
|
|
+) -> bytes:
|
|
|
+ return b"".join(
|
|
|
+ p.data if isinstance(p, pgpdump.packet.Packet) else p for p in packets
|
|
|
+ )
|
|
|
+
|
|
|
+
|
|
|
def numpy_array_from_file(
|
|
|
path: typing.Union[str, pathlib.Path], dtype
|
|
|
) -> numpy.ndarray:
|