---
title: ASN.1
framework: security
role: collectionGroup
role_heading: API Collection
path: security/asn-1
---

# ASN.1

Encode and decode Distinguished Encoding Rules (DER) and Basic Encoding Rules (BER) data streams.

## Overview

Overview You use an ASN.1 coder to encode and decode both DER and BER data streams based on templates that you supply, which in turn are based upon ASN.1 specifications. You must import this API explicitly:

## Topics

### Encoding

- [SecAsn1Item](security/secasn1item.md)
- [SecAsn1Template_struct](security/secasn1template_struct.md)
- [SecAsn1Template_struct](security/secasn1template_struct.md)
- [SecAsn1TemplateChooser](security/secasn1templatechooser.md)
- [SecAsn1TemplateChooserPtr](security/secasn1templatechooserptr.md)
- [Type Tags](security/type-tags.md)

### OID Comparison

- [SecAsn1Oid](security/secasn1oid.md)

### Public Key Info

- [SecAsn1AlgId](security/secasn1algid.md)
- [SecAsn1PubKeyInfo](security/secasn1pubkeyinfo.md)
