readHeader method
Reads and parses the container header without decrypting any frame — useful for inspecting metadata (e.g. an output filename) before a full decrypt.
Implementation
Future<PqStreamingHeader> readHeader(File input) async {
final source = await input.open();
try {
return (await _readContainerHeader(source)).header;
} finally {
await source.close();
}
}