1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! `flowscope::detect::file` — streaming-hash sinks for
//! reassembled payload windows, plus a `FileType` enum that
//! classifies the first ~64 bytes via magic-byte detection.
//!
//! Behind the `file-hash` Cargo feature.
//!
//! New in 0.12.0 (plan 146).
//!
//! The DFIR / IR consumer ask: "what files crossed the wire and
//! what were their hashes?" — *without* storing the file bytes
//! themselves. Suricata's `file_md5` / `file_sha256` keywords
//! cover the same recipe; flowscope ships the equivalent as a
//! consumer-driven sink trait.
//!
//! Out of scope:
//! - File extraction / storage. Hashes only.
//! - YARA / AV matching. Bring your own.
//! - Streaming decompression (gzip / br / zstd). Hashes are over
//! raw on-wire bytes.
pub use Md5Sink;
pub use Sha256Sink;
pub use ;
/// Trait for streaming-hash sinks attached to a reassembled
/// payload window or a session-parser body channel.
///
/// One sink per (flow, direction) typically. Construction is
/// consumer-driven; flowscope ships [`Sha256Sink`] and
/// [`Md5Sink`].