DerIndefLenConverter

A package private utility class to convert indefinite length DER encoded byte arrays to definite length DER encoded byte arrays.

This assumes that the basic data structure is "tag, length, value" triplet. In the case where the length is "indefinite", terminating end-of-contents bytes are expected.

@author Hemma Prafullchandra

Constructors

this
this()
Undocumented in source.

Members

Functions

convert
byte[] convert(byte[] indefData)

Converts a indefinite length DER encoded byte array to a definte length DER encoding.

Static functions

isIndefinite
bool isIndefinite(int lengthByte)

Checks whether the given length byte is of the form <em>Indefinite</em>.

isLongForm
bool isLongForm(int lengthByte)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta