Expand description
ASN.1 DER (Distinguished Encoding Rules) tag scanner, parser, and
comparator matching upstream file (src/der.c, src/der.h).
Structs§
- DerMatch
Result - Result of successfully evaluating a
dermagic test against a byte buffer. - DerPattern
- A parsed specification of a
dermagic rule test.
Constants§
- DER_
TAG_ BIT_ STRING - DER_
TAG_ BOOLEAN - DER_
TAG_ EOC - Universal ASN.1 DER Tag constants.
- DER_
TAG_ IA5_ STRING - DER_
TAG_ INTEGER - DER_
TAG_ NULL - DER_
TAG_ OBJECT_ IDENTIFIER - DER_
TAG_ OCTET_ STRING - DER_
TAG_ PRINTABLE_ STRING - DER_
TAG_ SEQUENCE - DER_
TAG_ SET - DER_
TAG_ UTCTIME - DER_
TAG_ UTF8_ STRING
Functions§
- format_
der_ data - Formats the decoded DER payload matching upstream
der_datainder.c. - match_
der - Evaluates a
DerPatternagainst bytes starting at the beginning ofdata. - parse_
der_ pattern - Parses a DER rule pattern from a magic rule line value string.
- read_
der_ length - Reads a DER length from
datastarting at*offset. - read_
der_ tag - Reads a DER tag number from
datastarting at*offset. - tag_
to_ name - Converts a DER tag number to its canonical name matching upstream
der__tag.