From 7319b5a10a192fedca111694145556b0254aad53 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Thu, 26 Jan 2017 14:44:52 +0100 Subject: notes on ASN.1 in general --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 72ba8f9..024b5a9 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,8 @@ ASN.1 solves the data serialization problem. This solution was designed long ago by the wise Ancients. Back then, they did not have the luxury of wasting bits. That is why ASN.1 is designed to serialize data structures of unbounded complexity into -something compact and robust. +something compact and efficient when it comes to processing +the data. That probably explains why many network protocols and file formats still rely upon the 30+ years old technology. Including a number of @@ -80,8 +81,11 @@ class Record(Sequence): ) ``` -Once you have your ASN.1 data structure defined, you can use it along -the lines of corresponding Python type: +It is in the spirit of ASN.1 to take abstract data description +and turn it into a programming language specific form. +Once you have your ASN.1 data structure expressed in Python, you +can use it along the lines of similar Python type (e.g. ASN.1 +`SET` is similar to Python `dict`, `SET OF` -- to `list`): ```python >>> record = Record() -- cgit v1.2.3