vds - v0.1.3
    Preparing search index...

    Class DerTLV

    DER-TLV encoder/decoder

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • DER-TLV encoder/decoder

      Parameters

      • tag: number

        Tag

      • value: Uint8Array

        Value

      Returns DerTLV

    Properties

    tag: number

    Tag

    value: Uint8Array

    Value

    Accessors

    • get encoded(): Uint8Array

      Encode to DER-TLV

      Returns Uint8Array

    Methods

    • Decode from DER-TLV

      Parameters

      • derBytes: Uint8Array

      Returns DerTLV | null

    • Encode value as DER coded INTEGER

      Parameters

      • value: Uint8Array

      Returns Uint8Array

    • Encodes length according to ASN.1 rules

      Parameters

      • length: number

      Returns Uint8Array