- Author: Jonathan M. Wilbur <jonathan@wilbur.space>
- Copyright Year: 2018
- License: MIT License
- Version: 1.0.0
ASN.1 stands for Abstract Syntax Notation. ASN.1 was first specified in X.680 - Abstract Syntax Notation One (ASN.1), by the International Telecommunications Union. ASN.1 messages can be encoded in one of several encoding/decoding standards. It provides a system of types that are extensible, and can presumably describe every protocol. You can think of it as a protocol for describing other protocols as well as a family of standards for encoding and decoding said protocols. It is similar to Google's Protocol Buffers, or Sun Microsystems' External Data Representation (XDR).
For more information on what ASN.1 is, see documentation/asn1.md
.
ASN.1 is used in, or required by, multiple technologies, including:
- X.509 Certificates, used in SSL/TLS
- Lightweight Directory Access Protocol (LDAP)
- X.400, the messaging system used by the U.S. Military
- X.500
- The magnetic stripes on credit cards and debit cards
- Microsoft's Remote Desktop Protocol (RDP)
- Simple Network Management Protocol (SNMP)
- Common Management Information Protocol (CMIP)
- Signalling System Number 7 (SS7), used to make most phone calls on the Public Switched Telephone Network (PSTN).
- Kerberos 5
- H.323 Video conferencing
- Biometrics Protocols:
- Computer Supported Telecommunications Applications (CSTA)
- Dedicated Short Range Communications (SAE J2735)
- Cellular telephony:
If you look in the
asn1
directory of WireShark's source code,
you'll see all of the protocols that use ASN.1.
This list can also be found in documentation/asn1.d
.
"Production," in this context, refers to grammatical rules that a parser uses.
These come from the official International Telecommunications Union specifications; more specifically, these:
- X.680 - Abstract Syntax Notation One (ASN.1): Specification of basic notation
- X.681 - Abstract Syntax Notation One (ASN.1): Information object specification
- X.682 - Abstract Syntax Notation One (ASN.1): Constraint specification
- X.683 - Abstract Syntax Notation One (ASN.1): Parameterization of ASN.1 specifications
The productions use the notation described in Section 5.2 of the International Telecommunications Union's X.680 - Abstract Syntax Notation One (ASN.1).
Though said specification says that these productions are in Backus-Naur Form (BNF), they are not. This is incorrect.
- Convert it to Backus-Naur Form (BNF), Augmented Backus-Naur Form (ABNF), or Extended Backus-Naur Form (EBNF)
- Create a
Makefile
with these targets:-
combined
which concatenates -
lint
which fails if any of the production or lexical item files do not meet syntactic requirements
-
- Create
lexical-items
- Add quotes from documentation to comments of
lexical-items
files - Add regular expressions to comments of
lexical-items
files - Quote all caps keywords in productions
- Trim trailing whitespace
- Use consistent indentation (tabs or spaces) between files
- X.680 - Abstract Syntax Notation One (ASN.1), published by the International Telecommunications Union.
- ASN.1: Communication Between Heterogeneous Systems by Olivier Dubuisson
If you would like to suggest fixes or improvements on this library, please just leave an issue on this GitHub page. If you would like to contact me for other reasons, please email me at jonathan@wilbur.space (My GPG Key) (My TLS Certificate). 🐗