Module droid

Module droid 

Source
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§

ContainerFileRule
File matching rule within a container signature.
ContainerSignature
Container signature mapping a set of files/streams to a PUID format.
ContainerSignatureDatabase
Full DROID container signature database.
DualAnchoredSignature
Dual-anchored format signature requiring byte patterns at both the start (BOF) and optionally end (EOF) of a file within bounded offset windows.
PronomByteSequence
Sequence of PRONOM subsequences anchored at BOF or EOF.
PronomDatabase
Full PRONOM signature database loaded from DROID XML.
PronomFormat
Format definition in the PRONOM database.
PronomInternalSignature
Internal PRONOM binary signature composed of byte sequences.
PronomSubSequence
Bounded byte pattern subsequence within a PRONOM signature.
ZipEntrySummary
Summary of an individual file or directory entry in a ZIP container.

Enums§

ContainerKind
Container type discriminator for DROID container signatures.
PronomByteSequenceRef
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.