We have received a specifications document for CDR encoded in TLV from a vendor and we are trying to build a parser for it. According to them, their CDR is formatted as per ASN.1 BER encoding. However when asked for ASN.1 specification file, they said they didn't have it and that their document is all they had.
Although not that versed into ASN.1 syntax, I am trying to reverse engineer that specs into ASN.1 specifications.
Their tags and length can be coded either over 1 or 2 bytes.
Let me share the first few bytes of some sample records:
804e 8060 8002 805c 010100 02089999999999999999 ...
804e 8066 8002 8062 010101 02089999999999999999 ...
First of all, is this really compliant to BER ASN.1? Because after reading A Layman's Guide to a Subset of ASN.1, BER, and DER, for a tag to be 2-bytes (or more) the bits 5-1 of the first byte must be set to 1, and 804e and 8002 don't fit this.
Secondly, how can I convert the above format into an ASN.1 specification?
Thank you.
You can use https://asn1.io/asn1playground/ (you don't need a specification to decode a BER value)
No.