Asn1Set

ASN.1 SET 0x31 (DERTags.DER_SET)

Parameters

children

the elements to put into this set. will be automatically sorted by tag

Inheritors

Properties

Link copied to clipboard
open override val children: List<Asn1Element>
Link copied to clipboard
Link copied to clipboard

Length (already properly encoded into a byte array for writing as ASN.1) of the contained data. For a primitive, this is just the size of the held bytes. For a structure, it is the sum of the number of bytes needed to encode all held child nodes.

Link copied to clipboard
val length: Int

Length (as a plain Int to work with it in code) of the contained data. For a primitive, this is just the size of the held bytes. For a structure, it is the sum of the number of bytes needed to encode all held child nodes.

Link copied to clipboard

Total number of bytes required to represent the ths element, when encoding to ASN.1.

Link copied to clipboard
val tag: UByte

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Returns true if more children can be retrieved by nextChild. false otherwise

Link copied to clipboard

Returns the next child held by this structure. Useful for iterating over its children when parsing complex structures.

Link copied to clipboard

Exception-free version of nextChild

Link copied to clipboard

Returns the current child (useful when iterating over this structure's children)

Link copied to clipboard
Link copied to clipboard
fun toDerHexString(lineLen: Byte? = null): String

Convenience method to directly produce an HEX string of this element's ANS.1 representation

Link copied to clipboard
open override fun toString(): String