DerElement
DerElement
A single parsed ASN.1 TLV element with byte-range metadata.
ts
interface DerElement {
readonly tag: number;
readonly tagNumber: number;
readonly headerLength: number;
readonly length: number;
readonly start: number;
readonly end: number;
readonly value: Uint8Array;
}Properties
readonlytag:number— Leading identifier octet (e.g.0x30for SEQUENCE,0x02for INTEGER,0x9ffor any context-specific primitive tag from 31 up).readonlytagNumber:number— Tag number within the class, from the leading octet below 31 and from the subsequent identifier octets from 31 up.readonlyheaderLength:number— Number of bytes occupied by the identifier and length octets.readonlylength:number— Byte length of the value portion (excluding tag and length octets).readonlystart:number— Byte offset where the value portion begins in the source buffer.readonlyend:number— Byte offset one past the last value byte. Equals the next element's header offset.readonlyvalue:Uint8Array— The raw value bytes (slice of the source buffer).