<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKBERTLVRecord",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKBERTLVRecord"
  },
  "title" : "TKBERTLVRecord"
}
-->

# TKBERTLVRecord

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

```
class TKBERTLVRecord
```

## Topics

### Creating TLV Records

[`-  initWithTag:value:`](/documentation/CryptoTokenKit/TKBERTLVRecord/init(tag:value:))

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

[`-  initWithTag:records:`](/documentation/CryptoTokenKit/TKBERTLVRecord/init(tag:records:))

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

[`TKTLVTag`](/documentation/CryptoTokenKit/TKTLVTag)

The type used to identify TLV format tags.

### Encoding Data

[`+  dataForTag:`](/documentation/CryptoTokenKit/TKBERTLVRecord/data(forTag:))

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

## Relationships

### Inherits From

[`TKTLVRecord`](/documentation/CryptoTokenKit/TKTLVRecord)

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)