简体   繁体   中英

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

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.

You can use asn1c and define multiple records with

MultipleRecords :: SEQUENCE OF SingleRecord

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM