Class

TKBERTLVRecord

An object that parses BER-encoded data and produces DER-encoded data for TLV records.

Declaration

class TKBERTLVRecord : TKTLVRecord

Topics

Creating TLV Records

init(tag: TKTLVTag, value: Data)

Initializes a BER-TLV record with the specified tag and value.

init(tag: TKTLVTag, records: [TKTLVRecord])

Initializes a BER-TLV record with the specified tag and an array of TLV subrecords.

typealias TKTLVTag

The type used to identify TLV format tags.

Encoding Data

class func data(forTag: TKTLVTag) -> Data

Encodes a specified tag using BER-TLV tag encoding rules.

Relationships

Inherits From

Conforms To

See Also

Working with Tag-Length-Value Records

class TKTLVRecord

The base class encapsulating a Tag-Length-Value record.

class TKCompactTLVRecord

An object that implements encoding using Compact-TLV encoding according to ISO 7816-4.

class TKSimpleTLVRecord

An object that implements encoding using Simple-TLV encoding according to ISO 7816-4.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software