lapo-luchini / asn1js

JavaScript generic ASN.1 parser
ISC License
582 stars 161 forks source link

Where do you ingest the ASN specification files themselves to decode the bytestreams? #48

Closed jkordani closed 2 years ago

jkordani commented 2 years ago

It is my understanding that you have to supply the ASN message definition somewhere in order to encode/decode the bytestreams. Am I missing something?

Great library by the way

lapo-luchini commented 2 years ago

Hi! Thanks.

ASN.1 is a self-describing so you don't actually need definitions in order to encode/decode raw content.

Definitions are only used to describe/enforce specific formats, and also to give to values some property names.

BTW: in 0ccdbecd86e365ef7ab80328031206abf3c5be80 I started working on a specification parser in order to do that in the web interface too.

jkordani commented 2 years ago

Today I learned! Thanks!