IBerConvertible
Methods
Section titled “Methods”fromBER()
Section titled “fromBER()”fromBER(
inputBuffer,inputOffset,inputLength):number
Base function for converting block from BER encoded array of bytes
Parameters
Section titled “Parameters”inputBuffer
Section titled “inputBuffer”ArrayBuffer | Uint8Array<ArrayBufferLike>
ASN.1 BER encoded array
inputOffset
Section titled “inputOffset”number
Offset in ASN.1 BER encoded array where decoding should be started
inputLength
Section titled “inputLength”number
Maximum length of array of bytes which can be using in this function
Returns
Section titled “Returns”number
Offset after least decoded byte
toBER()
Section titled “toBER()”toBER(
sizeOnly?):ArrayBuffer
Encoding of current ASN.1 block into ASN.1 encoded array (BER rules)
Parameters
Section titled “Parameters”sizeOnly?
Section titled “sizeOnly?”boolean
Flag that we need only a size of encoding, not a real array of bytes
Returns
Section titled “Returns”ArrayBuffer
ASN.1 BER encoded array