pub fn load_session_raw_data(
session_dir: &Path,
) -> Result<HashMap<String, Vec<u8>>, Error>Expand description
Load raw entropy data from a recorded session, grouped by source.
Reads raw.bin and raw_index.csv from session_dir, then groups
the raw bytes by source name using the index entries.
§CSV format (raw_index.csv)
offset,length,timestamp_ns,source
0,1000,1709234567890123456,clock_jitter
1000,1000,1709234567890234567,thermal_noiseEach row after the header contains four comma-separated fields:
offset— byte offset intoraw.binlength— number of bytes for this entrytimestamp_ns— nanosecond timestamp when the sample was recordedsource— name of the entropy source
Index entries where offset + length exceeds the size of raw.bin
are silently skipped (bounds check).
§Errors
Returns std::io::ErrorKind::NotFound if either raw.bin or
raw_index.csv is missing from session_dir.