pufos
pufos

Reputation: 2930

ASN.1 encoded file

I need to create an ASN.1 BER encoded file with multiple records. I've been searching for one (tools like oss, asn1c, ... etc), but I can't find one that suits me with a full example on how multiple records can be encoded in one file.

Does anyone know a good tool?

Thanks

Upvotes: 2

Views: 3479

Answers (2)

Lev Walkin
Lev Walkin

Reputation: 111

You can use asn1c and define multiple records with

MultipleRecords :: SEQUENCE OF SingleRecord

Upvotes: 1

trojanfoe
trojanfoe

Reputation: 122401

The tools won't really help you design your file-format, or protocol; that is a manual task that you must perform. You will need to design the rules of how data is stored and in what form each element will take.

The tools will help with implementation, allowing you to take your protocol definition and generating C or C++ code that is capable of decoding and encoding files that conform to that protocol.

The company I work for uses OSS Nokalva, which is the best, but expensive. I have also used asn1c, for personal projects, with success.

Upvotes: 6

Related Questions