Module der

Module der 

Source
Expand description

ASN.1 DER (Distinguished Encoding Rules) tag scanner, parser, and comparator matching upstream file (src/der.c, src/der.h).

Structs§

DerMatchResult
Result of successfully evaluating a der magic test against a byte buffer.
DerPattern
A parsed specification of a der magic 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_data in der.c.
match_der
Evaluates a DerPattern against bytes starting at the beginning of data.
parse_der_pattern
Parses a DER rule pattern from a magic rule line value string.
read_der_length
Reads a DER length from data starting at *offset.
read_der_tag
Reads a DER tag number from data starting at *offset.
tag_to_name
Converts a DER tag number to its canonical name matching upstream der__tag.