Expand description
DROID and PRONOM signature evaluation and container inspection subsystem.
Implements:
- Dual-anchored BOF (Beginning of File) and EOF (End of File) signatures with variable offset windows ported from DROID / PRONOM.
- Declarative container signature model for ZIP-based formats (DOCX, XLSX, PPTX, EPUB, APK, JAR, ODF) via Central Directory inspection without eager in-memory decompression or unpacking.
Structs§
- Container
File Rule - File matching rule within a container signature.
- Container
Signature - Container signature mapping a set of files/streams to a PUID format.
- Container
Signature Database - Full DROID container signature database.
- Dual
Anchored Signature - Dual-anchored format signature requiring byte patterns at both the start (BOF) and optionally end (EOF) of a file within bounded offset windows.
- Pronom
Byte Sequence - Sequence of PRONOM subsequences anchored at BOF or EOF.
- Pronom
Database - Full PRONOM signature database loaded from DROID XML.
- Pronom
Format - Format definition in the PRONOM database.
- Pronom
Internal Signature - Internal PRONOM binary signature composed of byte sequences.
- Pronom
SubSequence - Bounded byte pattern subsequence within a PRONOM signature.
- ZipEntry
Summary - Summary of an individual file or directory entry in a ZIP container.
Enums§
- Container
Kind - Container type discriminator for DROID container signatures.
- Pronom
Byte Sequence Ref - Reference anchor for PRONOM byte sequences (BOF or EOF).
Statics§
- DROID_
CONTAINER_ DB - Authoritative DROID container signature database loaded from embedded XML.
- DROID_
DUAL_ ANCHORED_ SIGNATURES - Authoritative DROID dual-anchored signature registry.
- DROID_
PRONOM_ DB - Authoritative DROID PRONOM binary signature database loaded from embedded XML.
Functions§
- classify_
zip_ container - Classifies a ZIP container from its entry list and uncompressed metadata.
- evaluate_
droid_ ole2_ container - Evaluates DROID container signatures against OLE2 stream names.
- evaluate_
droid_ zip_ container - Evaluates DROID container signatures against ZIP entry summaries.
- evaluate_
dual_ anchored_ signatures - Evaluates dual-anchored BOF / EOF signatures on source.
- evaluate_
pronom_ signatures - Evaluates PRONOM signatures from DROID database on source.
- get_
droid_ container_ signature_ xml - Returns the canonical DROID container signature file as raw bytes.
- get_
droid_ signature_ xml - Returns the canonical DROID PRONOM binary signature file (V125) as raw bytes.
- inspect_
zip_ container_ comprehensive - Comprehensive ZIP container inspection using Central Directory parsing with streaming local header scanning fallback.
- parse_
droid_ container_ signatures_ xml - Parses the DROID container signature XML into a
ContainerSignatureDatabase. - parse_
pronom_ signature_ xml - Parses the DROID PRONOM binary signature XML file into a
PronomDatabase. - parse_
zip_ central_ directory - Parses the ZIP Central Directory from the end of the file (EOCD).
- read_
zip_ entry_ payload - Reads the uncompressed or Deflate-decompressed payload of a ZIP entry.
- scan_
zip_ local_ headers - Fallback scanner for local file headers from the beginning of the file.