PKI-Lite - v1.0.5
    Preparing search index...

    Special class providing ability to have "toBER/fromBER" for raw ArrayBuffer

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Parameters

      • Optional__namedParameters: Partial<IRawData>

      Returns RawData

    Properties

    dataView: Uint8Array

    3.0.0

    Accessors

    • get data(): ArrayBuffer

      Returns ArrayBuffer

      Since v3.0.0

    • set data(value: ArrayBuffer): void

      Parameters

      • value: ArrayBuffer

      Returns void

      Since v3.0.0

    Methods

    • Base function for converting block from BER encoded array of bytes

      Parameters

      • inputBuffer: ArrayBuffer | Uint8Array<ArrayBufferLike>

        ASN.1 BER encoded array

      • inputOffset: number

        Offset in ASN.1 BER encoded array where decoding should be started

      • inputLength: number

        Maximum length of array of bytes which can be using in this function

      Returns number

      Offset after least decoded byte

    • Encoding of current ASN.1 block into ASN.1 encoded array (BER rules)

      Parameters

      • Optional_sizeOnly: boolean

        Flag that we need only a size of encoding, not a real array of bytes

      Returns ArrayBuffer

      ASN.1 BER encoded array